From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: Re: [PATCH net-next v2 2/6] net_sched: act: use standard struct list_head Date: Fri, 13 Dec 2013 10:46:28 -0800 Message-ID: References: <1386910604-1870-1-git-send-email-xiyou.wangcong@gmail.com> <1386910604-1870-3-git-send-email-xiyou.wangcong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Linux Netdev List , Jamal Hadi Salim , "David S. Miller" To: Changli Gao Return-path: Received: from mail-oa0-f44.google.com ([209.85.219.44]:34062 "EHLO mail-oa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753202Ab3LMSq3 (ORCPT ); Fri, 13 Dec 2013 13:46:29 -0500 Received: by mail-oa0-f44.google.com with SMTP id m1so2477026oag.17 for ; Fri, 13 Dec 2013 10:46:28 -0800 (PST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Dec 12, 2013 at 10:32 PM, Changli Gao wrote: > On Fri, Dec 13, 2013 at 12:56 PM, Cong Wang wrote: >> >> @@ -85,12 +86,18 @@ static inline int >> tcf_exts_is_predicative(struct tcf_exts *exts) >> { >> #ifdef CONFIG_NET_CLS_ACT >> - return !!exts->action; >> + return list_empty(&exts->head); >> #else >> return 0; >> #endif >> } >> > > You missed a "!". > Fixed. Thanks.