Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp917057imu; Tue, 11 Dec 2018 09:31:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/U9KFS440TGkJfjqq7rS60bj1o+/DZUwKiSXrmFFf3Y6g+/s0qFyetawebdgqCaq9tciPcb X-Received: by 2002:a62:7a8b:: with SMTP id v133mr17512013pfc.159.1544549474871; Tue, 11 Dec 2018 09:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544549474; cv=none; d=google.com; s=arc-20160816; b=FP+5pfLAUMsmMb2WgLqjadUoGCI9v45zXvDvKqF+HMn9CsNDIbSeepddJSqzb6N7MC fSdPTf921k8ro/31hGPWac/xUEqPEKhplaWzToO/5iGMZkPHn+oCP4hi9/1K6O0YarBl ivWohYS+i8a68ONT37Aap+1Nw2rnG7bPapEDBx6F+CebUnBpdG0VfXFoQ/pKgKJXh7g2 8hj67hfa+Q5j4vWMcI6MQZRcROVe4pSk9UvW+uBRIWoosQmRk+2SCSOQ5la3+kw1Oi8L 2w37JwdW2dt+trevOFDvLFMRqNCF8JmbCmTzjK8AbJyPebMme2FlxMQe6+uLRRRKUuE3 IYnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gDyT4/FEHPBDP+eSHA1VzCLJoy1ZbJp+yuBFTmu323Q=; b=tcCtzcqisURNpriEuTz48XSOnsUxYWTyHAD5qNl5UIT0k/3RSXlXTUAzXHAAhJ2GQy VilXsTeTTDcxr3GCRXwlIePMMGALbWlkZLBQsMrjlVxGQjg88h5GR6Ew1ViXdF7mpfKF OXf5QEv4DVUDdEy47h2KXTLnkhM4IVeba5l/G90UzdVTR2EeXiZ2M5QUf2CaTSFOcyob dxIenFx6qKyn93ZRju4OaGlaboKvGSx+Iw0hhWvNYNQYwwe3j9CobZDcXwLt6dIQfKoN V5iQCAEvmK5f6mBdpNoSz28lNRq9IhwpVhr0wjhLd+8JmEi4JosZlHEt659Cf/h2p2Sf hY6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g5T1rG69; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si11518663pgw.380.2018.12.11.09.30.59; Tue, 11 Dec 2018 09:31:14 -0800 (PST) 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=@kernel.org header.s=default header.b=g5T1rG69; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728204AbeLKPpv (ORCPT + 99 others); Tue, 11 Dec 2018 10:45:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:34166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727677AbeLKPpq (ORCPT ); Tue, 11 Dec 2018 10:45:46 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2DB282087F; Tue, 11 Dec 2018 15:45:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543145; bh=ZSGqd1NAli5Ab2xFx2uehipnfPy5UBKt6f0ptsxX7Yo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g5T1rG69rZJcJABE0UJPOU9dAuBRqjY89SxB/hl6fu8IJjcTJkl8lALfOVWjX3she MO5dRyd3ntZsiPIVHzf825Kak28RDHo28dbRo71lFymzYJH1XW08cPk5n1CXacyocm 91NUYcqjIIFBUwm4BFkOYC6YJkySzzbhSBamqPwQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 4.4 30/91] staging: rts5208: fix gcc-8 logic error warning Date: Tue, 11 Dec 2018 16:40:49 +0100 Message-Id: <20181211151608.246810750@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151606.026852373@linuxfoundation.org> References: <20181211151606.026852373@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 58930cced012adb01bc78b3687049b17ef44d0a3 upstream. As gcc-8 points out, the bit mask check makes no sense here: drivers/staging/rts5208/sd.c: In function 'ext_sd_send_cmd_get_rsp': drivers/staging/rts5208/sd.c:4130:25: error: bitwise comparison always evaluates to true [-Werror=tautological-compare] However, the code is even more bogus, as we have already checked for the SD_RSP_TYPE_R0 case earlier in the function and returned success. As seen in the mmc/sd driver core, SD_RSP_TYPE_R0 means "no response" anyway, so checking for a particular response would not help either. This just removes the nonsensical code to get rid of the warning. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rts5208/sd.c | 6 ------ 1 file changed, 6 deletions(-) --- a/drivers/staging/rts5208/sd.c +++ b/drivers/staging/rts5208/sd.c @@ -4165,12 +4165,6 @@ RTY_SEND_CMD: rtsx_trace(chip); return STATUS_FAIL; } - - } else if (rsp_type == SD_RSP_TYPE_R0) { - if ((ptr[3] & 0x1E) != 0x03) { - rtsx_trace(chip); - return STATUS_FAIL; - } } } }