Commit 23ec8eaf authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 83b6a85b
...@@ -72,7 +72,7 @@ static void st_nci_i2c_disable(void *phy_id) ...@@ -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) 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 st_nci_i2c_phy *phy = phy_id;
struct i2c_client *client = phy->i2c_dev; struct i2c_client *client = phy->i2c_dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment