From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: any reason for "!!netif_carrier_ok" and "!!netif_dormant" in net-sysfs.c? Date: Mon, 27 Aug 2018 09:04:24 -0700 (PDT) Message-ID: <20180827.090424.977658416500279863.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: rpjday@crashcourse.ca Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:57100 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727029AbeH0Tvk (ORCPT ); Mon, 27 Aug 2018 15:51:40 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: "Robert P. J. Day" Date: Mon, 27 Aug 2018 04:55:29 -0400 (EDT) > another pedantic oddity -- is there a reason for these two double > negations in net/core/net-sysfs.c? It turns an arbitrary integer into a boolean, this is a common construct across the kernel tree so I'm surprised you've never seen it before. Although, I don't know how much more hand holding we're willing to tolerate continuing to give to you at this point. Thanks.