summaryrefslogtreecommitdiff
path: root/drivers/net/skfp
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-01-29 17:32:20 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-29 17:32:20 -0800
commitc25b9abbc2c2c0da88e180c3933d6e773245815a (patch)
tree20bbc5f27934ddc737c35c1136bb95df2511517c /drivers/net/skfp
parente5664bb2a7fd8ae1bee1281c2e44653c471af9ca (diff)
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/net/skfp')
-rw-r--r--drivers/net/skfp/skfddi.c4
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: