diff options
| author | mrigendrachaubey <mrigendra.chaubey@gmail.com> | 2025-06-22 08:57:09 +0300 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-06-25 04:17:22 +0300 |
| commit | 26b971d58ab9f0d5003ac750a97bb88cec7aa2e1 (patch) | |
| tree | 88ae246d437925f9793d698be2e0f5ab39ee82cd /rust/helpers/slab.c | |
| parent | 6243146bb019a200c54a98c96b85f4b9012f2140 (diff) | |
| download | linux-26b971d58ab9f0d5003ac750a97bb88cec7aa2e1.tar.xz | |
scsi: scsi_devinfo: Remove redundant 'found'
Remove the unnecessary 'found' flag in scsi_devinfo_lookup_by_key(). The
loop can return the matching entry directly when found, and fall through
to return ERR_PTR(-EINVAL) otherwise.
Signed-off-by: mrigendrachaubey <mrigendra.chaubey@gmail.com>
Link: https://lore.kernel.org/r/20250622055709.7893-1-mrigendra.chaubey@gmail.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/helpers/slab.c')
0 files changed, 0 insertions, 0 deletions
