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: https://git.stricted.de/?a=commitdiff_plain;h=c25b9abbc2c2c0da88e180c3933d6e773245815a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 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: