projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6c8a31
)
platform/x86: sony-laptop: Drop variable assignment in sony_nc_setup_rfkill()
author
Markus Elfring
<
[email protected]
>
Wed, 1 Nov 2017 18:00:59 +0000
(19:00 +0100)
committer
Andy Shevchenko
<
[email protected]
>
Sun, 5 Nov 2017 11:53:14 +0000
(13:53 +0200)
The local variable "err" will eventually be set to an appropriate value
a bit later. Thus omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <
[email protected]
>
Signed-off-by: Andy Shevchenko <
[email protected]
>
drivers/platform/x86/sony-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/sony-laptop.c
b/drivers/platform/x86/sony-laptop.c
index 4332cc982ce0ff8d6413545cdd0e4a18d106ffc1..62aa2c37b8d2821450008fb820cbd7be9552f6a7 100644
(file)
--- a/
drivers/platform/x86/sony-laptop.c
+++ b/
drivers/platform/x86/sony-laptop.c
@@
-1627,7
+1627,7
@@
static const struct rfkill_ops sony_rfkill_ops = {
static int sony_nc_setup_rfkill(struct acpi_device *device,
enum sony_nc_rfkill nc_type)
{
- int err
= 0
;
+ int err;
struct rfkill *rfk;
enum rfkill_type type;
const char *name;