Message ID | 20220127072919.139615-2-damien.lemoal@opensource.wdc.com |
---|---|
State | New |
Headers | show |
Series | [1/3] ata: libata-scsi: Cleanup ata_get_xlat_func() | expand |
On 1/27/22 08:29, Damien Le Moal wrote: > Remove the unnecessary "break" after the return statement in the > MODE_SELECT/MODE_SELECT_10 case. > > Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> > --- > drivers/ata/libata-scsi.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c > index ed8be585a98f..c73e94c06147 100644 > --- a/drivers/ata/libata-scsi.c > +++ b/drivers/ata/libata-scsi.c > @@ -3933,7 +3933,6 @@ static inline ata_xlat_func_t ata_get_xlat_func(struct ata_device *dev, u8 cmd) > case MODE_SELECT: > case MODE_SELECT_10: > return ata_scsi_mode_select_xlat; > - break; > > case ZBC_IN: > return ata_scsi_zbc_in_xlat; Reviewed-by: Hannes Reinecke <hare@suse.de> Cheers, Hannes
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index ed8be585a98f..c73e94c06147 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -3933,7 +3933,6 @@ static inline ata_xlat_func_t ata_get_xlat_func(struct ata_device *dev, u8 cmd) case MODE_SELECT: case MODE_SELECT_10: return ata_scsi_mode_select_xlat; - break; case ZBC_IN: return ata_scsi_zbc_in_xlat;
Remove the unnecessary "break" after the return statement in the MODE_SELECT/MODE_SELECT_10 case. Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> --- drivers/ata/libata-scsi.c | 1 - 1 file changed, 1 deletion(-)