guideline: Make explicit fallthrough cases
-Wimplicit-fallthrough=2 requires a fallthrough comment or a compiler to tells gcc that this happens intentionally. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
f0ec286759
commit
0aaae4a039
46 changed files with 105 additions and 101 deletions
|
@ -84,7 +84,7 @@ static int adt7420_attr_set(struct device *dev,
|
|||
return 0;
|
||||
case SENSOR_ATTR_UPPER_THRESH:
|
||||
reg = ADT7420_REG_T_HIGH_MSB;
|
||||
/* Fallthrough */
|
||||
__fallthrough;
|
||||
case SENSOR_ATTR_LOWER_THRESH:
|
||||
if (!reg) {
|
||||
reg = ADT7420_REG_T_LOW_MSB;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue