Re: [PATCH] scsi: osd_uld: remove an unneeded NULL check

From: Martin K. Petersen
Date: Mon Mar 27 2017 - 21:55:13 EST


Dan Carpenter <dan.carpenter@xxxxxxxxxx> writes:

> 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.

Applied to 4.12/scsi-queue (by hand).

--
Martin K. Petersen Oracle Linux Engineering