summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pm8001/pm8001_init.c
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-02-20 12:18:08 +0900
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-22 21:31:21 -0500
commit304fe11bdc25b4c8a6c9551590d256f647158805 (patch)
tree957510bb1f292a52ecf493fecaf8210eb4cf1bdb /drivers/scsi/pm8001/pm8001_init.c
parente29c47fe8946cc732b0e0d393b65b13c84bb69d0 (diff)
downloadlinux-304fe11bdc25b4c8a6c9551590d256f647158805.tar.bz2
scsi: pm8001: Simplify pm8001_ccb_task_free()
The task argument of the pm8001_ccb_task_free() function can be inferred from the ccb argument ccb_task field. So there is no need to have this argument. Likewise, the ccb_index argument is always equal to the ccb tag field and is not needed either. Remove both arguments and update all call sites. The pm8001_ccb_task_free_done() helper is also modified to match this change. Link: https://lore.kernel.org/r/20220220031810.738362-30-damien.lemoal@opensource.wdc.com Reviewed-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_init.c')
0 files changed, 0 insertions, 0 deletions