mirror of https://gitee.com/openkylin/linux.git
platform/x86: remove unneeded break
A break is not needed if it is preceded by a return Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20201019133212.12671-1-trix@redhat.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
dac76c17d2
commit
6198219362
|
@ -792,7 +792,6 @@ static acpi_status AMW0_set_u32(u32 value, u32 cap)
|
|||
switch (quirks->brightness) {
|
||||
default:
|
||||
return ec_write(0x83, value);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return AE_ERROR;
|
||||
|
|
|
@ -2467,13 +2467,11 @@ static int __sony_nc_gfx_switch_status_get(void)
|
|||
* 0: integrated GFX (stamina)
|
||||
*/
|
||||
return result & 0x1 ? SPEED : STAMINA;
|
||||
break;
|
||||
case 0x015B:
|
||||
/* 0: discrete GFX (speed)
|
||||
* 1: integrated GFX (stamina)
|
||||
*/
|
||||
return result & 0x1 ? STAMINA : SPEED;
|
||||
break;
|
||||
case 0x0128:
|
||||
/* it's a more elaborated bitmask, for now:
|
||||
* 2: integrated GFX (stamina)
|
||||
|
@ -2482,7 +2480,6 @@ static int __sony_nc_gfx_switch_status_get(void)
|
|||
dprintk("GFX Status: 0x%x\n", result);
|
||||
return result & 0x80 ? AUTO :
|
||||
result & 0x02 ? STAMINA : SPEED;
|
||||
break;
|
||||
}
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
@ -1260,13 +1260,10 @@ acpi_wmi_ec_space_handler(u32 function, acpi_physical_address address,
|
|||
switch (result) {
|
||||
case -EINVAL:
|
||||
return AE_BAD_PARAMETER;
|
||||
break;
|
||||
case -ENODEV:
|
||||
return AE_NOT_FOUND;
|
||||
break;
|
||||
case -ETIME:
|
||||
return AE_TIME;
|
||||
break;
|
||||
default:
|
||||
return AE_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue