diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-03-22 15:20:58 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2017-04-05 04:15:17 -0400 |
commit | 3267183c3d1a6612c00961d7334413f9976c751a (patch) | |
tree | a026d6eb5c803cd5a08ce22736b47c0867d6ec5d /net/nfc | |
parent | 682fd6185053875bb16efb1037f3d2ae9680b015 (diff) |
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index 4c95319dc22b..23a6e01f35ed 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netlink.c | |||
@@ -922,7 +922,7 @@ static int nfc_genl_activate_target(struct sk_buff *skb, struct genl_info *info) | |||
922 | rc = nfc_activate_target(dev, target_idx, protocol); | 922 | rc = nfc_activate_target(dev, target_idx, protocol); |
923 | 923 | ||
924 | nfc_put_device(dev); | 924 | nfc_put_device(dev); |
925 | return 0; | 925 | return rc; |
926 | } | 926 | } |
927 | 927 | ||
928 | static int nfc_genl_dep_link_up(struct sk_buff *skb, struct genl_info *info) | 928 | static int nfc_genl_dep_link_up(struct sk_buff *skb, struct genl_info *info) |