From patchwork Wed Jun 13 13:06:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 928868 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="qonRJ6xu"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 415Rq70P2Sz9ry1 for ; Wed, 13 Jun 2018 23:06:58 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id AB39DC21E13; Wed, 13 Jun 2018 13:06:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CDED5C21DE8; Wed, 13 Jun 2018 13:06:53 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5DAFAC21DE8; Wed, 13 Jun 2018 13:06:52 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by lists.denx.de (Postfix) with ESMTPS id 07D3AC21C93 for ; Wed, 13 Jun 2018 13:06:52 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id w10-v6so2685864wrk.9 for ; Wed, 13 Jun 2018 06:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:subject:date:message-id; bh=w5oyiomjouChD0Nv//KSRj/YxvETm3qJTucQzbBC/Kk=; b=qonRJ6xuedIpqvo1wRgrZ9wMQWEmpg7nxs6A9bGUZzVNNTMOIIZ/xzMtdBN6xopvak 460A+HUtl0MpvbAiSM6jd76kLBkTZa5ZhJcEEB+33nBTifyLGl58asDk4lUMUwPx1cEv uF4xZDwN9Js5hARcb7eHlRjkEr4PdxMvjAlsHNFRV9x91IqOkLwwMxNwXJ03vIIjP5V9 iL4XOgY6sm81qTiYPWSvt5ACJ6DfUmoCBPDk77/CGtc/sBgOcrdUsOZb1htIFNRM6uQP tKCEFsuHv20WkyXDU54k4wSh05uNBvm+2d68AogUIcTxPGTBhQhaDZrbd4U3aDW/vFIv h4dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id; bh=w5oyiomjouChD0Nv//KSRj/YxvETm3qJTucQzbBC/Kk=; b=eU7NcmDag6FvMRCSIviuyusFU2Dk1EQnQ5mdSrvZ5znU7hmUANHQU6fnu52MC/5GWl 0i58pktZ+TDWYNmryl/iq3V9z0EulwExZYqROO54QPBNmLu8vUZcNOnLyvZtVxMe/F8M eVc3Z2nngGofUi16D+Ftjgy7A9GBlpsgrmKuRT8J7V30PPnfANGcL+H6PRnvzvlY6Hul /ZZCvJfhPv0L+WYuRxG2QMsVjmlDFffrcvEk6JXYqP7LUXs/lypi5Zp6ZhrmyhJWIbDn n8Z6bL05Wr17OJQbxyhvxXIw3dQbw3+WWGDMSRQLyA6a8NP8MYuDuZJ6f3rZlAn8CIdG gFlw== X-Gm-Message-State: APt69E27a4CSqZ8M1bF9EpS4HiGCMYKJNkfyKxfFh2HFZFYVHZTBoo0x tqZkdaRaG05HrDkPTbbgwfufnG3l X-Google-Smtp-Source: ADUXVKLSDY1ZXxGUWJJnFumBaToKxvbS1fyEiopChVqvV4vbHQ+rEpE7vvLE9cWThsvnYWdDRYqgLg== X-Received: by 2002:adf:9525:: with SMTP id 34-v6mr3915181wrs.99.1528895211477; Wed, 13 Jun 2018 06:06:51 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id s10-v6sm4543425wmb.12.2018.06.13.06.06.50 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 13 Jun 2018 06:06:50 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Wed, 13 Jun 2018 15:06:49 +0200 Message-Id: <15c70f4f78b33b5c277f02a96b771c4fc4a9b8dd.1528895207.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 Subject: [U-Boot] [PATCH] cmd: gpio: Remove dead code from do_gpio X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" gpio input/set/clear and toggle commands are already cover that's why there is no any other case which should be handled. Signed-off-by: Michal Simek --- Reported by: Coverity (local) Not sure how to report this properly without CID --- cmd/gpio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/gpio.c b/cmd/gpio.c index ecdc453918f4..f59cb5837187 100644 --- a/cmd/gpio.c +++ b/cmd/gpio.c @@ -208,8 +208,6 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (!IS_ERR_VALUE(value)) value = !value; break; - default: - goto show_usage; } gpio_direction_output(gpio, value); }