Skip to contentSkip to conversation

zfcp: remove unnecessary null pointer check before mempool_destroy

PATCH Hannes Reinecke 1 participant 1 message Nov 16, 2018 1 message not in the archive s390

lore
Share & tools
lore

Hannes Reinecke

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · Steffen Maier

From: zhong jiang <[email protected]>

mempool_destroy has taken null pointer check into account. so remove the redundant check.

Quoted 8 lines
[[email protected]: depends on v4.3 4e3ca3e033d1 ("mm/mempool: allow NULL `pool' pointer in mempool_destroy()")]
---
  drivers/s390/scsi/zfcp_aux.c | 21 +++++++--------------
  1 file changed, 7 insertions(+), 14 deletions(-)

Cheers,

Hannes

Signature · 5 lines
Dr. Hannes Reinecke		   Teamlead Storage & Networking
[email protected]			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N�rnberg
GF: F. Imend�rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG N�rnberg)