Skip to content

Commit 5fd565e

Browse files
kartbendkalowsk
authored andcommitted
drivers: sensor: mmc56x3: add missing return statement
Added a missing return statement in the mmc56x3_decoder_get_size_info causing incorrect size calculation for single channel data Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 854713c commit 5fd565e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/sensor/memsic/mmc56x3/mmc56x3_decoder.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static int mmc56x3_decoder_get_size_info(struct sensor_chan_spec chan_spec, size
5555
case SENSOR_CHAN_MAGN_Z:
5656
*base_size = sizeof(struct sensor_q31_sample_data);
5757
*frame_size = sizeof(struct sensor_q31_sample_data);
58+
return 0;
5859
case SENSOR_CHAN_MAGN_XYZ:
5960
*base_size = sizeof(struct sensor_three_axis_data);
6061
*frame_size = sizeof(struct sensor_three_axis_sample_data);

0 commit comments

Comments
 (0)