[PATCH] kfree cleanup: drivers/scsi
This is the drivers/scsi/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in drivers/scsi/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Cc: James Bottomley <James.Bottomley@steeleye.com> Acked-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
089b1dbbde
commit
c9475cb0c3
@@ -91,8 +91,7 @@ void queue_free (Queue_t *queue)
|
||||
{
|
||||
if (!list_empty(&queue->head))
|
||||
printk(KERN_WARNING "freeing non-empty queue %p\n", queue);
|
||||
if (queue->alloc)
|
||||
kfree(queue->alloc);
|
||||
kfree(queue->alloc);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user