/// Remove unneeded conversion to bool /// //# Relational and logical operators evaluate to bool, //# explicit conversion is overly verbose and unneeded. // // Copyright: (C) 2016 Andrew F. Davis GPLv2. virtual patch virtual context virtual org virtual report //---------------------------------------------------------- // For patch mode //---------------------------------------------------------- @depends on patch@ expression A, B; symbol true, false; @@ ( A == B | A != B | A > B | A < B | A >= B | A <= B | A && B | A || B ) - ? true : false //---------------------------------------------------------- // For context mode //---------------------------------------------------------- @r depends on !patch@ expression A, B; symbol true, false; position p; @@ ( A == B | A != B | A > B | A < B | A >= B | A <= B | A && B | A || B ) * ? true : false@p //---------------------------------------------------------- // For org mode //---------------------------------------------------------- @script:python depends on r&&org@ p << r.p; @@ msg = "WARNING: conversion to bool not needed here" coccilib.org.print_todo(p[0], msg) //---------------------------------------------------------- // For report mode //---------------------------------------------------------- @script:python depends on r&&report@ p << r.p; @@ msg = "WARNING: conversion to bool not needed here" coccilib.report.print_report(p[0], msg) t.cgi/linux/net-next.git/'>summaryrefslogtreecommitdiff
path: root/net/core/skbuff.c
AgeCommit message (Expand)AuthorFilesLines
2017-02-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-nextDavid S. Miller1-1/+1
2017-02-02net: remove useless pfmemalloc settingEric Dumazet1-1/+0
2017-02-02skbuff: add and use skb_nfct helperFlorian Westphal1-1/+1