[patch] libsrp: remove dead code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There was a stray kfree() left over from:
4546548789 kfifo: move struct kfifo in place

Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>

diff --git a/drivers/scsi/libsrp.c b/drivers/scsi/libsrp.c
index 2277516..c06eaeb 100644
--- a/drivers/scsi/libsrp.c
+++ b/drivers/scsi/libsrp.c
@@ -67,7 +67,6 @@ static int srp_iu_pool_alloc(struct srp_queue *q, size_t max,
 	}
 	return 0;
 
-	kfree(q->items);
 free_pool:
 	kfree(q->pool);
 	return -ENOMEM;
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux