mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
platform/x86: ideapad-laptop: Remove unnecessary else
Address the following checkpatch warning by removing unnecessary else blocks: WARNING: else is not generally useful after a break or return Signed-off-by: Jiaxun Yang <[email protected]> Signed-off-by: Darren Hart (VMware) <[email protected]>
This commit is contained in:
parent
1c3fdf125e
commit
ba3a33876e
1 changed files with 6 additions and 6 deletions
|
|
@ -124,10 +124,10 @@ static int read_method_int(acpi_handle handle, const char *method, int *val)
|
|||
if (ACPI_FAILURE(status)) {
|
||||
*val = -1;
|
||||
return -1;
|
||||
} else {
|
||||
*val = result;
|
||||
return 0;
|
||||
}
|
||||
*val = result;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
static int method_gbmd(acpi_handle handle, unsigned long *ret)
|
||||
|
|
@ -164,10 +164,10 @@ static int method_vpcr(acpi_handle handle, int cmd, int *ret)
|
|||
if (ACPI_FAILURE(status)) {
|
||||
*ret = -1;
|
||||
return -1;
|
||||
} else {
|
||||
*ret = result;
|
||||
return 0;
|
||||
}
|
||||
*ret = result;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
static int method_vpcw(acpi_handle handle, int cmd, int data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue