From patchwork Fri Feb 6 12:52:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 44479 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3D11221529 for ; Fri, 6 Feb 2015 12:52:35 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id l4sf10658988lbv.1 for ; Fri, 06 Feb 2015 04:52:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:subject:date :message-id:in-reply-to:references:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=ns4XqgYG/MNRAbU8v6naV8M5yPs9f8Xx/89Hq3pWbeg=; b=kcAYpd5a6y0kTm6ds84XCBrGYi+JkOoel7Yo4QmImEJx+0RAe8rvWwsytxO/gEEd8z vGFHVYuQ7n9NZvIxPhCkzuu+psX/QJQpnLVH1akTN1b+8w1EeAgHDyHpQBo13SJIEbtn DxE8CvUZUfnSLexyT2D4fbA9usdn2gLhgDxuHfLAQ6gmsU5QGwpu65W1EXsTXQvNrQE+ /Bc5zb8PGrnHyt2VJ5z38brpcTkqb6rCGT05K5hAhLLYkUrQEHnCyMdssOnEaGCtjIX3 vDqkoSFVhd2SPNFugY8jjiKKpNxsckwbzzp6fDhT+Q3ZdCV9JvvNNzgLZUIwuGy4FpEJ k0Mw== X-Gm-Message-State: ALoCoQleIxTiZgQ8drIL9E1tzMPzowgZu7mqgxmCvy3iYrJ218jo/jgTNacVPIy2adGv+C30mdmu X-Received: by 10.180.105.129 with SMTP id gm1mr237017wib.3.1423227153934; Fri, 06 Feb 2015 04:52:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.165 with SMTP id m5ls259337lag.104.gmail; Fri, 06 Feb 2015 04:52:33 -0800 (PST) X-Received: by 10.152.43.67 with SMTP id u3mr2511288lal.23.1423227153608; Fri, 06 Feb 2015 04:52:33 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id ta1si1327670lbb.67.2015.02.06.04.52.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Feb 2015 04:52:33 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by labpv20 with SMTP id pv20so901172lab.7 for ; Fri, 06 Feb 2015 04:52:33 -0800 (PST) X-Received: by 10.152.6.195 with SMTP id d3mr447156laa.36.1423227153493; Fri, 06 Feb 2015 04:52:33 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1781934lbj; Fri, 6 Feb 2015 04:52:32 -0800 (PST) X-Received: by 10.70.130.205 with SMTP id og13mr5559584pdb.72.1423227151797; Fri, 06 Feb 2015 04:52:31 -0800 (PST) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id z1si10248740pas.104.2015.02.06.04.52.30; Fri, 06 Feb 2015 04:52:31 -0800 (PST) Received-SPF: none (google.com: dri-devel-bounces@lists.freedesktop.org does not designate permitted sender hosts) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A48EF6E925; Fri, 6 Feb 2015 04:52:29 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 8CA9B6E924 for ; Fri, 6 Feb 2015 04:52:27 -0800 (PST) Received: by mail-wi0-f174.google.com with SMTP id n3so2224815wiv.1 for ; Fri, 06 Feb 2015 04:52:27 -0800 (PST) X-Received: by 10.194.108.41 with SMTP id hh9mr7567662wjb.25.1423227146984; Fri, 06 Feb 2015 04:52:26 -0800 (PST) Received: from lmenx321.st.com. (lya72-2-88-175-155-153.fbx.proxad.net. [88.175.155.153]) by mx.google.com with ESMTPSA id hr1sm1392601wib.1.2015.02.06.04.52.25 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Feb 2015 04:52:26 -0800 (PST) From: Benjamin Gaignard To: dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, airlied@redhat.com Subject: [PATCH 2/5] drm: sti: fix static checker warning in sti_awg_utils Date: Fri, 6 Feb 2015 13:52:06 +0100 Message-Id: <1423227129-17588-3-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423227129-17588-1-git-send-email-benjamin.gaignard@linaro.org> References: <1423227129-17588-1-git-send-email-benjamin.gaignard@linaro.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: benjamin.gaignard@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Vincent Abriou The shift and the mask done on arg value is useless since arg is null. Signed-off-by: Vincent Abriou --- drivers/gpu/drm/sti/sti_awg_utils.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_awg_utils.c b/drivers/gpu/drm/sti/sti_awg_utils.c index 9fde3ee..6029a2e 100644 --- a/drivers/gpu/drm/sti/sti_awg_utils.c +++ b/drivers/gpu/drm/sti/sti_awg_utils.c @@ -60,8 +60,6 @@ static int awg_generate_instr(enum opcode opcode, * pixel. So we transform SKIP into SET * instruction */ opcode = SET; - arg = (arg << 24) >> 24; - arg &= (0x0ff); break; }