mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
NFC: netlink: Use error code from nfc_activate_target()
It looks like a typo to assign a return code to a variable which is not
used. Found due to a compiler warning:
net/nfc/netlink.c: In function ‘nfc_genl_activate_target’:
net/nfc/netlink.c:903:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
int rc;
^~
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
682fd61850
commit
3267183c3d
1 changed files with 1 additions and 1 deletions
|
|
@ -922,7 +922,7 @@ static int nfc_genl_activate_target(struct sk_buff *skb, struct genl_info *info)
|
|||
rc = nfc_activate_target(dev, target_idx, protocol);
|
||||
|
||||
nfc_put_device(dev);
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int nfc_genl_dep_link_up(struct sk_buff *skb, struct genl_info *info)
|
||||
|
|
|
|||
Loading…
Reference in a new issue