Re: [PATCH] cxlflash: remove an unnecessary NULL check

2020-06-09 Thread Martin K. Petersen
On Fri, 5 Jun 2020 14:02:58 +0300, Dan Carpenter wrote: > The "cmd" pointer was already dereferenced a couple lines earlier so > this NULL check is too late. Fortunately, the pointer can never be NULL > and the check can be removed. Applied to 5.8/scsi-queue, thanks! [1/1] scsi: cxlflash:

[PATCH] cxlflash: remove an unnecessary NULL check

2020-06-05 Thread Dan Carpenter
The "cmd" pointer was already dereferenced a couple lines earlier so this NULL check is too late. Fortunately, the pointer can never be NULL and the check can be removed. Signed-off-by: Dan Carpenter --- drivers/scsi/cxlflash/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git