From: Sergei Shtylyov Subject: Re: [PATCH net-next] mdio_bus: Remove unneeded gpiod NULL check Date: Tue, 18 Jul 2017 15:48:52 +0300 Message-ID: References: <1500325749-8382-1-git-send-email-festevam@gmail.com> <6f984a9c-e6d3-fd0a-6719-fa9032d43d1d@cogentembedded.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Andrew Lunn , Florian Fainelli , "netdev@vger.kernel.org" , Fabio Estevam To: Fabio Estevam Return-path: Received: from mail-lf0-f54.google.com ([209.85.215.54]:36554 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371AbdGRMs4 (ORCPT ); Tue, 18 Jul 2017 08:48:56 -0400 Received: by mail-lf0-f54.google.com with SMTP id d78so8433563lfg.3 for ; Tue, 18 Jul 2017 05:48:55 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 07/18/2017 03:39 PM, Fabio Estevam wrote: >> Won't this result in kernel WARNING when GPIO is disabled? GPIO support, I was going to type... > Not sure if I understood your point, but gpiod_set_value_cansleep() is > a no-op when the gpiod is NULL. Look at the stub in , it has WARN_ON(1). MBR, Sergei