Skip to content

Commit dcf9449

Browse files
jilaypandyakartben
authored andcommitted
drivers: sensor: mmc56x3_async.c fix missing break
coverity complains of a missing break statement in SENSOR_CHAN_ALL case this is fixed by adding __attribute__((fallthrough)) Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
1 parent e8c5405 commit dcf9449

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/sensor/memsic/mmc56x3/mmc56x3_async.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,13 @@ void mmc56x3_submit_sync(struct rtio_iodev_sqe *iodev_sqe)
5353
case SENSOR_CHAN_MAGN_Z:
5454
edata->has_magn_z = 1;
5555
break;
56+
case SENSOR_CHAN_MAGN_XYZ:
57+
edata->has_magn_x = 1;
58+
edata->has_magn_y = 1;
59+
edata->has_magn_z = 1;
60+
break;
5661
case SENSOR_CHAN_ALL:
5762
edata->has_temp = 1;
58-
case SENSOR_CHAN_MAGN_XYZ:
5963
edata->has_magn_x = 1;
6064
edata->has_magn_y = 1;
6165
edata->has_magn_z = 1;

0 commit comments

Comments
 (0)