All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] block: remove check around kfree
@ 2015-06-24 10:03 Maninder Singh
  0 siblings, 0 replies; only message in thread
From: Maninder Singh @ 2015-06-24 10:03 UTC (permalink / raw)
  To: snitzer, axboe, akpm, benoit.taine, bhelgaas, joe, linux-kernel
  Cc: pankaj.m, Maninder Singh

kfree Checks for NULL poitner itself,
so no need of explicit NULL check

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Rohit Thapliyal <r.thapliyal@samsung.com>
---
 drivers/block/skd_main.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c
index 1e46eb2..c4b0259 100644
--- a/drivers/block/skd_main.c
+++ b/drivers/block/skd_main.c
@@ -3998,8 +3998,7 @@ static int skd_acquire_msix(struct skd_device *skdev)
 	return 0;
 
 msix_out:
-	if (entries)
-		kfree(entries);
+	kfree(entries);
 	skd_release_msix(skdev);
 	return rc;
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-24 10:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-24 10:03 [PATCH 1/1] block: remove check around kfree Maninder Singh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.