Re: [PATCH] scsi: scsi_devinfo: remove redundant 'found'

From: Bart Van Assche
Date: Mon Jun 09 2025 - 19:56:43 EST


On 5/30/25 10:46 PM, mrigendrachaubey wrote:
+ list_for_each_entry(devinfo_table, &scsi_dev_info_list, node) {
+ if (devinfo_table->key == key)
+ return devinfo_table;
+ }

The braces around the loop body are not necessary. Please remove these.

Thanks,

Bart.