diff options
| author | Deepak R Varma <drv@mailo.com> | 2023-01-08 23:38:24 +0300 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-01-24 05:15:02 +0300 |
| commit | 4fd62973739de61cf4c83b960db7d1824bd854a3 (patch) | |
| tree | 416bc8985d5f886537cb674f9713cd4420e6abc1 /include/linux/fpga/fpga-mgr.h | |
| parent | 2aa0f83edb1c5a341f0aca209b0ecd74672fb3fa (diff) | |
| download | linux-4fd62973739de61cf4c83b960db7d1824bd854a3.tar.xz | |
scsi: qla2xxx: Use a variable for repeated mem_size computation
Use a variable to compute memory size to be allocated once instead of
repeatedly computing it at different locations in the function. Issue
identified using the array_size_dup Coccinelle semantic patch.
Link: https://lore.kernel.org/r/Y7spwF8HTt0c0l7y@ubun2204.myguest.virtualbox.org
Signed-off-by: Deepak R Varma <drv@mailo.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions
