scsi: osd_uld: remove an unneeded NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Mar 2017 10:41:42 +0000 (13:41 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 28 Mar 2017 01:55:14 +0000 (21:55 -0400)
commit03b1a06203a1f283ad8a20dce78f0f5f17eaeb88
treeb34f4746803ce059f30c053d612f13aa53f17469
parent16a20b52d1b0c900ea2e7363cf6e10267a445002
scsi: osd_uld: remove an unneeded NULL check

We don't call the remove() function unless probe() succeeds so "oud"
can't be NULL here.  Plus, if it were NULL, we dereference it on the
next line so it would crash anyway.

[mkp: applied by hand]

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Boaz Harrosh <ooo@electrozaur.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/osd/osd_uld.c