]> git.karo-electronics.de Git - mv-sheeva.git/commit
[SCSI] qla2xxx: list cursors are not null
authorDan Carpenter <error27@gmail.com>
Wed, 22 Dec 2010 00:00:15 +0000 (16:00 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 23 Dec 2010 21:43:32 +0000 (15:43 -0600)
commit8ae598d02517af967685a671303c4ed10cded3c4
treec901f3fd8e750c590a944f91fae27f844802954f
parent579d12b58abb4bd1161728f0a4a2524258ecf0a3
[SCSI] qla2xxx: list cursors are not null

This is just a cleanup.

The unneeded NULL check annoys static checkers because we already
derefenced it and the we check it and then (if it's not the _safe()
version) we dereference it again without checking.  And the static
checker is all, "Wah?  Is it null or not?"

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_os.c