ionic: change set_rx_mode from_ndo to can_sleep
[linux-2.6-microblaze.git] / drivers / net / xen-netfront.c
index 3e9895b..920cac4 100644 (file)
@@ -2413,12 +2413,11 @@ static ssize_t store_rxbuf(struct device *dev,
                           const char *buf, size_t len)
 {
        char *endp;
-       unsigned long target;
 
        if (!capable(CAP_NET_ADMIN))
                return -EPERM;
 
-       target = simple_strtoul(buf, &endp, 0);
+       simple_strtoul(buf, &endp, 0);
        if (endp == buf)
                return -EBADMSG;