提交 e4a18052 编写于 作者: M Markus Elfring 提交者: Andy Shevchenko

platform/x86: sony-laptop: Drop variable assignment in sony_nc_setup_rfkill()

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: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
上级 f6c8a317
...@@ -1627,7 +1627,7 @@ static const struct rfkill_ops sony_rfkill_ops = { ...@@ -1627,7 +1627,7 @@ static const struct rfkill_ops sony_rfkill_ops = {
static int sony_nc_setup_rfkill(struct acpi_device *device, static int sony_nc_setup_rfkill(struct acpi_device *device,
enum sony_nc_rfkill nc_type) enum sony_nc_rfkill nc_type)
{ {
int err = 0; int err;
struct rfkill *rfk; struct rfkill *rfk;
enum rfkill_type type; enum rfkill_type type;
const char *name; const char *name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册