summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorChaohai Chen <wdhh6@aliyun.com>2025-02-26 09:58:02 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2025-03-11 04:57:37 +0300
commite402ee093f748b3614aa549beef71d071617cddd (patch)
treeef770c8204be35340c36e9ba44ac14277808e87e /rust/helpers/helpers.c
parentffd6c179286daf31ea0d6413228bbc2a3c7ee1de (diff)
downloadlinux-e402ee093f748b3614aa549beef71d071617cddd.tar.xz
scsi: core: Use a switch statement when attaching VPD pages
The original code used if statements to update discovered VPD pages when found. This had the side-effect of not breaking the loop when a page was found. Use an idiomatic switch statement instead. Signed-off-by: Chaohai Chen <wdhh6@aliyun.com> Link: https://lore.kernel.org/r/20250226065802.234144-1-wdhh6@aliyun.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions