summaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-02 14:16:42 +0100
committerDavid S. Miller <davem@davemloft.net>2019-07-02 12:00:50 -0700
commit23ec8eaf46e1472f26c5c7549205797d006efa13 (patch)
treefe24757fb7c24ee2a68c6f02890369942ad25b48 /drivers/nfc
parent83b6a85bbbde81332ad329b9876f0afd5172c99a (diff)
downloadlinux-23ec8eaf46e1472f26c5c7549205797d006efa13.tar.gz
linux-23ec8eaf46e1472f26c5c7549205797d006efa13.tar.bz2
linux-23ec8eaf46e1472f26c5c7549205797d006efa13.zip
nfc: st-nci: remove redundant assignment to variable r
The variable r is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/st-nci/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/st-nci/i2c.c
index 67a685adfd44..55d600cd3861 100644
--- a/drivers/nfc/st-nci/i2c.c
+++ b/drivers/nfc/st-nci/i2c.c
@@ -72,7 +72,7 @@ static void st_nci_i2c_disable(void *phy_id)
*/
static int st_nci_i2c_write(void *phy_id, struct sk_buff *skb)
{
- int r = -1;
+ int r;
struct st_nci_i2c_phy *phy = phy_id;
struct i2c_client *client = phy->i2c_dev;