Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pm8001: Fix to remove null pointer checks that could never happen

Removal of null pointer checks that could never happen

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Acked-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Acked-by: Jack Wang <xjtuwjp@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>

authored by

Rickard Strandqvist and committed by
Christoph Hellwig
d9816446 5b4ce882

+1 -1
+1 -1
drivers/scsi/pm8001/pm8001_hwi.c
··· 4409 4409 4410 4410 /* Check for read log for failed drive and return */ 4411 4411 if (sata_cmd.sata_fis.command == 0x2f) { 4412 - if (pm8001_ha_dev && ((pm8001_ha_dev->id & NCQ_READ_LOG_FLAG) || 4412 + if (((pm8001_ha_dev->id & NCQ_READ_LOG_FLAG) || 4413 4413 (pm8001_ha_dev->id & NCQ_ABORT_ALL_FLAG) || 4414 4414 (pm8001_ha_dev->id & NCQ_2ND_RLE_FLAG))) { 4415 4415 struct task_status_struct *ts;