]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] osd: checking NULL instead of ERR_PTR()
authorDan Carpenter <error27@gmail.com>
Fri, 12 Nov 2010 04:31:46 +0000 (07:31 +0300)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 9 Dec 2010 15:24:13 +0000 (09:24 -0600)
commitec1886a605d3484f23f560a624399d5b779e7965
tree0ca2b93e59d960da0973ed7882ffac06e74c2a45
parent4179f42bb42d394a3045d6bc3151c626281bcb5f
[SCSI] osd: checking NULL instead of ERR_PTR()

bio_map_kern() returns ERR_PTRs on failure and never returns NULL.

[jejb: remove redundant unlikely spotted by Tobias Klauser]
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/osd/osd_initiator.c