Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3630003ybg; Mon, 28 Oct 2019 16:14:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAwIehsdPHUn1MmyBSpSI82YPn6TzvVsey35eta/9Ly5WTHkPMwzdaUlqDfSJGwFH0sSMW X-Received: by 2002:a05:6402:696:: with SMTP id f22mr11090945edy.104.1572304456569; Mon, 28 Oct 2019 16:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572304456; cv=none; d=google.com; s=arc-20160816; b=bMa5tAVP/0BQFnr+EHPTZh4mt3l8W3IRIIYd/HFWivzF5iThQrTPw6uphYefwyQKh8 kY+1fCNjOwGGLlReQZboug+QLTLa12o9ndSNhxyhydmmDE+lRfYL7yRd1YEFURP9JrT2 08/dOR39aG3y8L3DKHIcYl4nZ0igQHZbnPFg1A79ZgdnHnzXVOVD/xQR2T9M9AAP3IPY zBYcAFWE2/goOcDvIJi5gjchjYBkNMC5S40DlK2LLKN/cENAI/crLUEAgGJBuj920Var HD4r/3ywotimF0Mxe8RtG9U8Wp535Haakecqlts/25XjZCgwfL3aAPpV1HdhF290Oifa 2CNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=LpLtDPgqTSExYcD+3Zq3oGqSdNVk6TYhbGQpCSsiyhw=; b=JVVjNjkvHvxXcWewqTvAqiEJOGYDptJCBCfUHVTyar2auArITwQRQQxx15MZ+iEc1f YN8D1zVtHvbGcFGACMQmba4oqI8EJz5x+/SzmzADebK5Lii5aTT3SExIXeKhZPXZo/Db q6pG0rDrr6Atv0xaDTOorXdz8SZBkji+WMkS8rLT7mvVtDmLuPNN0bw3VwfvHyKLUPfq fsdbCia/pJwIUReNX6rq58J7tYf4g5UF8femDkXALDsjhcpkSA88cx6/gClZg+wNyfbo eCVZyNZKKChrkwTPXk5eZk4KTySMYmKK7iXBDmC0sDaACCiDFLi1rKyp6sWmnPcBIJqJ 17FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aDBZQqYV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19si3826282edd.51.2019.10.28.16.13.53; Mon, 28 Oct 2019 16:14:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aDBZQqYV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727866AbfJ1VMW (ORCPT + 99 others); Mon, 28 Oct 2019 17:12:22 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46500 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbfJ1VMW (ORCPT ); Mon, 28 Oct 2019 17:12:22 -0400 Received: by mail-pf1-f196.google.com with SMTP id b25so7765838pfi.13; Mon, 28 Oct 2019 14:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=LpLtDPgqTSExYcD+3Zq3oGqSdNVk6TYhbGQpCSsiyhw=; b=aDBZQqYVRTjqcOLPHqP93LA77KhRVsnLqLSjzX0fUt4OqAa6Smt/8dUT0nw13h6o7P fmz9BD3sB875PUkGIc6hJT/6tN4owz8x/uQALi1eIFKy6jCqkRS4OhriaopCMrPtDEQx 6RLo5RrXUjq7c3vL/qV5OkhIiKqEXnKAPfZqxTYxnVjEw70Xs1O0A6dDPCuyUMEIZtIY p5G1kSmiim0gzMQHQIovhObnY8L0kX1OQRowg2A4Kv2ZlNnDfVx7arhscohJEHCHgU4l fRMv17JRtV24NFfd5pCuWb2bWTsCSfQ0nnrK7OvNT9AqEvWeea+Piw6FQE42Br8lx4N8 6K8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=LpLtDPgqTSExYcD+3Zq3oGqSdNVk6TYhbGQpCSsiyhw=; b=L7WcU2qrx3Xfnlypuod6P5KwgxlPtm4D3tz3VuibzIvT5KnVX2SGPGJRjRxrkaSvbz omxIqAN0wNp67XhLEvdDw1VuxgGgrCu7Q1D0krBvm2bY1c2nZV//PeEAWV3GJ8qNJ41z EdvAOK63GYv72Gkzz35o/o60QG2fG9mODV4F3nnU39hKcQbjaej1Hn/5VnXVl0lUd2Bl E9EUQnmeU+udQ+lSxcEuOnRnthY/94w1Jy8v1tHHiJuPj20skd4g0ZeycJEioA62cz+C ryxptlRz88c/HR8VI7IcJXqIi3mO4yQwaInqKidWb+IVQLzgOfnfuiTtWhslhpIkGMOo 3tGQ== X-Gm-Message-State: APjAAAVKyANOjPYhUkvbc3EIujB4BxBSro/XDlqQkwnP2WSm6E88cbJc DqXXd7jnsUz0ywLUXYemAI0= X-Received: by 2002:a62:1ac6:: with SMTP id a189mr22685761pfa.96.1572297141812; Mon, 28 Oct 2019 14:12:21 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id w189sm11884010pfw.101.2019.10.28.14.12.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 14:12:21 -0700 (PDT) Date: Tue, 29 Oct 2019 02:42:14 +0530 From: Saurav Girepunje To: gregkh@linuxfoundation.org, gustavo@embeddedor.com, saurav.girepunje@gmail.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] usb: isp1760: isp1760-hcd.c: Drop condition with no effect Message-ID: <20191028211214.GA30014@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the "else if" and "else" branch body are identical the condition has no effect. So drop the "else if" condition. Signed-off-by: Saurav Girepunje --- drivers/usb/isp1760/isp1760-hcd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c index 320fc4739835..579a21bd70ad 100644 --- a/drivers/usb/isp1760/isp1760-hcd.c +++ b/drivers/usb/isp1760/isp1760-hcd.c @@ -1032,8 +1032,6 @@ static int check_atl_transfer(struct usb_hcd *hcd, struct ptd *ptd, urb->status = -EOVERFLOW; else if (FROM_DW3_CERR(ptd->dw3)) urb->status = -EPIPE; /* Stall */ - else if (ptd->dw3 & DW3_ERROR_BIT) - urb->status = -EPROTO; /* XactErr */ else urb->status = -EPROTO; /* Unknown */ /* -- 2.20.1