diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-01-30 02:32:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-30 02:32:20 +0100 |
commit | c25b9abbc2c2c0da88e180c3933d6e773245815a (patch) | |
tree | 20bbc5f27934ddc737c35c1136bb95df2511517c /drivers | |
parent | gianfar: Fix Wake-on-LAN support (diff) | |
download | linux-c25b9abbc2c2c0da88e180c3933d6e773245815a.tar.xz linux-c25b9abbc2c2c0da88e180c3933d6e773245815a.zip |
drivers/net/skfp: if !capable(CAP_NET_ADMIN): inverted logic
Fix inverted logic
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/skfp/skfddi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c index 607efeaf0bc5..9a00e5566af7 100644 --- a/drivers/net/skfp/skfddi.c +++ b/drivers/net/skfp/skfddi.c @@ -1003,9 +1003,9 @@ static int skfp_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) break; case SKFP_CLR_STATS: /* Zero out the driver statistics */ if (!capable(CAP_NET_ADMIN)) { - memset(&lp->MacStat, 0, sizeof(lp->MacStat)); - } else { status = -EPERM; + } else { + memset(&lp->MacStat, 0, sizeof(lp->MacStat)); } break; default: |