Received: by 10.223.164.221 with SMTP id h29csp2739989wrb; Wed, 18 Oct 2017 06:13:43 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDk8De2nlvkp+UJC9Imf3WvFPhH998a7m2mI1SrT6dO0cMKHElPgR5Ux9mRrlejbIWRLPzC X-Received: by 10.84.240.140 with SMTP id z12mr15507982plk.328.1508332423285; Wed, 18 Oct 2017 06:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508332423; cv=none; d=google.com; s=arc-20160816; b=gNIVPvfLq73JGj8wBw/BDRyp1mNpggpHc+GY7rfkaF2P8T83jce827A62IsI0pXW9y COSgVzK4b01MS5S/xZZAuIblq1Iig27Dd4DRVvWQDz1vJS2+IV/AtgHeWbafc8irvTJ5 pXYEqvrGIyrk3W49MybcX1ZIgbQA/OEh8IiF/mcT+JWimhQmgnp8YjlY7ffSfrt2uIQJ +x1nMChdE37+HNn7AV15LIGNkn3QkTyRlxQdB307lcbbC05LSMKJlCMYgZID9+2n2hBa PGjkOi+WbhDxUPPawr1mroRV1ep7ftUZKlGPWGEGZGh+6RwejZ4IaUBvTP9w9QxSnbBN lwsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=BAyB1/+d/B5Dsg8kjCwoAPi86TnOJMmIss3ZTeu/vcU=; b=AxbSvbccnDMFH/FAwb1aJ8izbC9oc6zCAay28GAlx0rW6z7wsILO0uc4ai2Z8dVcjh +P07gbyYB2M7ObeysO3jPnXsERV53/mKXAWMrhzVgNJIIJ/9ZOHEzDY18iKr+rAlhyG0 tnh1n/yIoXb2zpzvK28Z1vKn50E6u0HGFOoVBO0x8Hmt7ACv99Va87wpKcmyiDuvb/uo tiTDNuCUEuJaI1zJIj8LP+YgjTqf/PoEg9zxtl0j1oShgY4QbL2t61knXRNmvCOq9D00 rG2vvbcAPST3Ss2V11C9gK0mbWAneY26TC8ZQWT8Kt5hu7xeSOQXcbUBmB71skQEGsu8 6LUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=1/OBkMQL; 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 x66si7481177pfe.396.2017.10.18.06.13.29; Wed, 18 Oct 2017 06:13:43 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=1/OBkMQL; 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 S937827AbdJQWKo (ORCPT + 99 others); Tue, 17 Oct 2017 18:10:44 -0400 Received: from mail-bl2nam02on0057.outbound.protection.outlook.com ([104.47.38.57]:14519 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932080AbdJQWKm (ORCPT ); Tue, 17 Oct 2017 18:10:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BAyB1/+d/B5Dsg8kjCwoAPi86TnOJMmIss3ZTeu/vcU=; b=1/OBkMQLRFE/pMAA/z8aOPU8LtONqbYwQgr7TOmQeT/l+vuVp0zhZOFWyJcQmoOsmUumHe+3j/OqzaggbJWS5z0V70AQGD2ON/Wl1ssDdUp96x1xAXKpJZdDku7DYZaUYrwvblgfrmv/pCMuBfaI+1yM3/daaALJ4I2wPdyZWC0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.19.127] (165.204.77.1) by DM5PR12MB1322.namprd12.prod.outlook.com (10.168.238.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 17 Oct 2017 22:10:38 +0000 Subject: Re: [PATCH] crypto: ccp: remove unused variable qim To: Colin King , Tom Lendacky , "David S . Miller" , linux-crypto@vger.kernel.org References: <20171012165541.32256-1-colin.king@canonical.com> Cc: kernel-janitors@vger.kernel.org, Herbert Xu , linux-kernel@vger.kernel.org From: Gary R Hook Message-ID: <83517ed8-3dc5-4ecd-b3e1-7412e8eef472@amd.com> Date: Tue, 17 Oct 2017 17:12:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20171012165541.32256-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR08CA0076.namprd08.prod.outlook.com (10.172.143.142) To DM5PR12MB1322.namprd12.prod.outlook.com (10.168.238.9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a31c2458-8eed-4baa-a683-08d515abe69e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:DM5PR12MB1322; X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1322;3:vQqJF6ooNFsAVm/H7qNbE2YgbW5IUN94C7vgibCoTknnmQtXCBB+LOGQc1oXsNqAdKPRhV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s/wzL1mP7umYcFc44mc0bidwj2Ut4icDqTvT+K3UY0gOVyWG93Gay1xEKTm7tPvjywQwdRf78diokujDTLgY6fvqLsGcP7VLj0sZ2509IuWmXuSsw5N/48C+kFPFQxE5oBGEUuAXBn/qxO8YoitFK0STcmUyxRBEmNPQRCOCbABD+Tkgd4XE4Ba04lIxLe8WCUIJPK70vntfaDE2ZS65fwo1Cg992gsOa9Pkxou9/LJMR2Cw/7oQ5XywD/KjMOZ2oBZMsfWWU6Ip+mEH3SXTxQMvkSAI;4:K0/4kRA66H4CDppsecXz9UWFZIgY1R9cKHTt41S6Aaza7S+105Emg63saakepq/Fr4CccGDgEBrCYfIOxN4NOh4kUbQDT6IpjqLqwqjt8nXLJtpdJSrIIPRyPSlh71FZtiqkVgpsR/tAMNEnIMg6KHcqm9tr9hIZDlLg3T55oW2Yy1CnttkxAIngSPM8Zu1B7E3OC6nexyhZIRi8FrRJGBAKPKvKrOrqIwjZhVTjxBIebSLuSsAbgsyHxMUaMf62BlLJ/f8553mtlLG92cTycZx7fVqSHMvfvbmeRx/DZ5tLAkSysjSthTumjCtYXaNpYC4B8W70SlwMHhUSOHOnbg== X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(198206253151910); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR12MB1322;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR12MB1322; X-Forefront-PRVS: 04631F8F77 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(6009001)(346002)(39860400002)(376002)(377454003)(199003)(189002)(24454002)(7736002)(5660300001)(58126008)(65826007)(3846002)(33646002)(105586002)(6116002)(53546010)(90366009)(6246003)(110136005)(16526018)(31686004)(316002)(106356001)(6666003)(83506001)(16576012)(23676002)(2950100002)(65806001)(65956001)(76176999)(2906002)(4326008)(54356999)(97736004)(8936002)(8676002)(25786009)(81156014)(81166006)(50986999)(47776003)(478600001)(86362001)(50466002)(31696002)(189998001)(230700001)(305945005)(77096006)(36756003)(68736007)(53936002)(229853002)(66066001)(101416001)(64126003)(6486002)(72206003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB1322;H:[10.236.19.127];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMzIyOzIzOkp1OU52QzdmU3l3YWwyaXJGWnBwOHFIWkxB?= =?utf-8?B?NmhQVTJOcGdTb1N5NDNWZ0MxZ2s4eUsxY0VWczE1V2tZOGFNeitSbVlIZER0?= =?utf-8?B?d2NxQUR5cWtZK2hRMG93cnhFRWpTeDFMNlVIVk1qNEViYzA4bDZsUXhtQXJK?= =?utf-8?B?T3ZLQkMvdkJmdEFwZUdqUUxJcEFzdS9JVXVmNXBtdmF3eHVPQTNmWHlMNWhz?= =?utf-8?B?K01tTHQrdHByM3BZcjdqSVlsQnlOeVZrNFFBSlE5ZDVBc2pxaEVVVE8yaWg1?= =?utf-8?B?SURFQm5ERVpMRmh6Q0dzaUhPS3FHR2ZJSkx0dDJ1RE5oRS9NMUhtTjVlOVBu?= =?utf-8?B?NUN6Mk16bjR1ajFJeE53bFhtTTF4cjRJaEE5SGduMFdrUC9RM05iNkR1UWVP?= =?utf-8?B?MEpHTFR2QjlUK20wSWZzRU9weTNFbjFETDZ0cDV5Q0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NW/A4zCMB7jiSEa9unC3gOhFKWZ7xk6RxdRtWlXFo4qmIhVIPOuzppEFRZ2UJ8PMnR1wpbuIYVqu2v/fDXndylvQTUnEy/CtluWIU4kuXYHhuzDWuvXPaqEzAeYQ==;24:W5rQq6rT2re71/9M2E9rQJ8EBGXtB5FLDFaemUac+IFf8x+i/XCaKySQhVkBYZAdkhtnOB9rNavWkzBuFBODNBeSMcH9CCcVn55/BbMJoGA=;7:pMVNNtkZ5Jyc9ht6VKKtHxNnqEY3G/nqn/q8rIdZl+lAl8ZFbfu3i8hd2+n+HLIdxlztd7sNbUdCZLgLD9/wHPmMuBGC17b6jD/ku8LQrCG9l3PhHjMhn3YJtdX7Z08GjM26agG+cydOsBInRpdUJ+fzsreA3xm+Djend0XUwKCWqwTJB/NhPIjg+voUN9gRT2ZA0WP957Tsgz6mTA+6L4vo3FUMDtJD8BdJVz5vNxY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB1322;20:6Ckf2xQMmA4Z0XdCk3e24+Tx4y4ycvRZ3D3v5r+b7cf/gpemCiEH+AqIQavdAQZZt6mdxKQ9qxlM8JcLe/1troF/kxfbc8JdwInhHCD4j59ZhbguOlt5GI+Bp1baowhQKm29dCQgUZqA99HLbinjIZXknQTHfAR5QxYJMW+I6otENgozhR+NiGxjtpxmVg2un7M3WHM71+B/NbCthIOdZ3j762dfidHG0YlNXxb9vH5fXRTfHhLVkMtAC/r9zjRK X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2017 22:10:38.7728 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1322 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/12/2017 11:55 AM, Colin King wrote: > From: Colin Ian King > > Variable qim is assigned but never read, it is redundant and can > be removed. > > Cleans up clang warning: Value stored to 'qim' is never read > > Fixes: 4b394a232df7 ("crypto: ccp - Let a v5 CCP provide the same function as v3") > Signed-off-by: Colin Ian King Acked-by: Gary R Hook > --- > drivers/crypto/ccp/ccp-dev-v5.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/crypto/ccp/ccp-dev-v5.c b/drivers/crypto/ccp/ccp-dev-v5.c > index 65604fc65e8f..44a4d2779b15 100644 > --- a/drivers/crypto/ccp/ccp-dev-v5.c > +++ b/drivers/crypto/ccp/ccp-dev-v5.c > @@ -788,13 +788,12 @@ static int ccp5_init(struct ccp_device *ccp) > struct ccp_cmd_queue *cmd_q; > struct dma_pool *dma_pool; > char dma_pool_name[MAX_DMAPOOL_NAME_LEN]; > - unsigned int qmr, qim, i; > + unsigned int qmr, i; > u64 status; > u32 status_lo, status_hi; > int ret; > > /* Find available queues */ > - qim = 0; > qmr = ioread32(ccp->io_regs + Q_MASK_REG); > for (i = 0; i < MAX_HW_QUEUES; i++) { > > From 1581071707245578455@xxx Thu Oct 12 16:57:59 +0000 2017 X-GM-THRID: 1581071707245578455 X-Gmail-Labels: Inbox,Category Forums