summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-06-27 06:32:42 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2020-06-29 21:34:35 -0400
commit5aee52c44d9170591df65fafa1cd408acc1225ce (patch)
treea5806e52c145d28172236607f59e6d0490403af9 /sound
parent311950f8b8d80ba41aa09a26bcaf0c2231f8d264 (diff)
scsi: scsi_transport_spi: Fix function pointer check
clang static analysis flags several null function pointer problems. drivers/scsi/scsi_transport_spi.c:374:1: warning: Called function pointer is null (null dereference) [core.CallAndMessage] spi_transport_max_attr(offset, "%d\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reviewing the store_spi_store_max macro if (i->f->set_##field) return -EINVAL; should be if (!i->f->set_##field) return -EINVAL; Link: https://lore.kernel.org/r/20200627133242.21618-1-trix@redhat.com Reviewed-by: James Bottomley <jejb@linux.ibm.com> Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions