From: Roel Kluin Date: Fri, 30 Jan 2009 01:32:20 +0000 (-0800) Subject: drivers/net/skfp: if !capable(CAP_NET_ADMIN): inverted logic X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c25b9abbc2c2c0da88e180c3933d6e773245815a;p=linux-2.6-omap-h63xx.git drivers/net/skfp: if !capable(CAP_NET_ADMIN): inverted logic Fix inverted logic Signed-off-by: Roel Kluin Signed-off-by: David S. Miller --- diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c index 607efeaf0bc..9a00e5566af 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: