From patchwork Tue Jun 14 15:03:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9176147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5600660772 for ; Tue, 14 Jun 2016 15:17:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 488812522B for ; Tue, 14 Jun 2016 15:17:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D1D927E78; Tue, 14 Jun 2016 15:17:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE6582522B for ; Tue, 14 Jun 2016 15:17:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750968AbcFNPRf (ORCPT ); Tue, 14 Jun 2016 11:17:35 -0400 Received: from mail-bn1bon0093.outbound.protection.outlook.com ([157.56.111.93]:28672 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750789AbcFNPRd (ORCPT ); Tue, 14 Jun 2016 11:17:33 -0400 X-Greylist: delayed 852 seconds by postgrey-1.27 at vger.kernel.org; Tue, 14 Jun 2016 11:17:33 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=r2LkOgqOb1Jbvx1Czf85+oMdVY+uq8JOBDjMU6/9HZQ=; b=P8Qa3CQqrOMNaR6r4aeealWTsW+Pn2zR+n5AmSnro0O2ly8phZfF9qzV4OPCGO6HwKtPWn1yvG/E09sXfKGfBqfzUnJ94oGiDmH/mTKfG7bP5ThRZ5eYkx4ZMSI9t04uRo4Nk2SBBJ1663jrX8WjadJWQKGrr4laJ9KJVPuqYR4= Received: from CY1PR0201CA0032.namprd02.prod.outlook.com (10.163.30.170) by BY2PR0201MB1765.namprd02.prod.outlook.com (10.163.72.19) with Microsoft SMTP Server (TLS) id 15.1.511.8; Tue, 14 Jun 2016 15:03:19 +0000 Received: from BN1BFFO11FD045.protection.gbl (2a01:111:f400:7c10::1:165) by CY1PR0201CA0032.outlook.office365.com (2a01:111:e400:58b9::42) with Microsoft SMTP Server (TLS) id 15.1.517.8 via Frontend Transport; Tue, 14 Jun 2016 15:03:18 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; fb.com; dkim=none (message not signed) header.d=none;fb.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN1BFFO11FD045.mail.protection.outlook.com (10.58.145.0) with Microsoft SMTP Server (TLS) id 15.1.511.7 via Frontend Transport; Tue, 14 Jun 2016 15:03:18 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [172.22.12.162]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id A9.11.03023.39B10675; Tue, 14 Jun 2016 07:58:31 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.279.2; Tue, 14 Jun 2016 08:03:14 -0700 X-AuditID: ac160c69-33fff70000000bcf-a8-57601b934e95 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 90.BB.03875.1BC10675; Tue, 14 Jun 2016 08:03:14 -0700 (PDT) Subject: [PATCH 1/3] block/partition-generic.c: Remove a set-but-not-used variable To: Jens Axboe References: <25262742-283b-fc4d-30df-d6a9196c85a5@sandisk.com> CC: "linux-block@vger.kernel.org" From: Bart Van Assche Message-ID: <50e4a887-3b50-9d53-c3dc-4280b58e21d2@sandisk.com> Date: Tue, 14 Jun 2016 17:03:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <25262742-283b-fc4d-30df-d6a9196c85a5@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsWyRoxnke506YRwgxeLGC3+7znGZrH3lrYD k8fE5nfsHp83yQUwRXHZpKTmZJalFunbJXBlPF17n7XgGVvFhYf2DYwrWLsYOTgkBEwkJjZF dDFycQgJzGWS+NL2nxnC2cEose/uGfYuRk6wopXrO9ghEksZJWZt+cwG0i0sECIx+3wBSI2I gKzE992v2UBsIQE7iTcHQBZwcjAL2Evsvd3KCGKzCRhJfHs/kwXE5gWquT/3KZjNIqAqcWnT DLB6UYEIid5fS6BqBCVOznwCZnMCzdn59QTY0cwCmhLrd+lDjJeX2P52DtjNEgJtrBL3Fs1m hLhBXeLkkvlMExiFZyEZNQuhfRaS9gWMzKsYxXIzc4pz01MLDE31ihPzUjKLs/WS83M3MUIC O3MH490n3ocYBTgYlXh4C0Tjw4VYE8uKK3MPMUpwMCuJ8HpLJYQL8aYkVlalFuXHF5XmpBYf YpTmYFES53W79yVMSCA9sSQ1OzW1ILUIJsvEwSnVwOhSMoVN2CR4E/vb/6auIQo2kfsvRRzi /Dr74cW3x9IPJe3+furiVOaLQeXvplQ2lT43jppQFPz7+iHrbO9oj+rz+xbp/23KvCRi/vVy 5DqZc+WZJwR+3l7NsCziwJ+za5yF5Lj0Ty4zCqpYZV/O+fQsm5dMZ3K0HNsij5/nH/2OLhCM dbr94IkSS3FGoqEWc1FxIgCRaPUFaAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLJMWRmVeSWpSXmKPExsXCtZEjRXeTTEK4wapD8hb/9xxjs9h7S9uB yWNi8zt2j8+b5AKYorhsUlJzMstSi/TtErgynq69z1rwjK3iwkP7BsYVrF2MnBwSAiYSK9d3 sHcxcnEICSxmlLh2r5eti5GDQ1ggRGL2+QKQGhEBWYnvu1+zgdhCAnYSbw5A9DIL2Euc2T4V zGYTMJL49n4mC4jNC1Rzf+5TMJtFQFXi0qYZYDWiAhESvb+WQNUISpyc+QTM5gSas/PrCaiZ 6hJ/5l1ihrDlJba/ncM8gZFvFpKWWUjKZiEpW8DIvIpRLDczpzg3PbPA0EivODEvJbM4Wy85 P3cTIzjAOKN2MF6faH6IkYmDU6qB0YAt7GKe5ctHZ4wOP3rHlHrE6NMu8Y3r4upWr/RftfnV 1doDG1YeeKngtXa36Zc9H5qK8qfeNChRude2putbzi8flkXLA1fnJDLNlRL2ercmSfnyD8WD oXJvxD+yNE7smrNgZc3dyTlqkud21x2/Htp8r8ntQMWZIG0RpQXOnMGBbevO2HPPqFdiKc5I NNRiLipOBAAFd05R4AEAAA== X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(47776003)(53416004)(33646002)(86362001)(31686004)(4326007)(50466002)(230783001)(106466001)(2906002)(356003)(586003)(11100500001)(83506001)(8936002)(19580405001)(2270400002)(77096005)(64126003)(36756003)(6806005)(19580395003)(76176999)(54356999)(69596002)(2950100001)(189998001)(87936001)(5008740100001)(92566002)(65806001)(31696002)(81166006)(229853001)(81156014)(65956001)(8676002)(23676002)(50986999)(97736004)(230700001)(110136002)(5003600100002)(68736007)(4001350100001)(65826006)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB1765; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD045; 1:uQcUIuA8TGSJlX0QpXWvYuds6Dt06fnJs+ekeq2xNuW4/hlY6R5aW9cUw7vFWmNdoiU65c8P47kVjIcqm494vdCeBfQWL1OZbDOeN57iVylISJF9sbSJFAd6t9F387NySB2fjwGfMdvaDzhAgF49peSjo4fGDGqZot65imtt40tdu9XTWtPLAORgXMOiBMwyBBrW4a2W9m4OYLezxC4cD4Eh9XqFicPtuenFNlzqkfnmQm+jnrdzY2guzRfHAPJPMy4XWt2Lv8f1h6vWK3SqE1iuHtyvtaQ7vmKNcuERdelbR1soH8q1DhWEXPtbv8BEr3SuJOp99DHnaQUz+NakOHnCAe7E/tgf8fGVa6nScT0btcJs1gDstSjZokR7vVcvPtRgvCi+EfXKwDzANrJpw0bVc/vCzMImYo5Q0F6cUhmo37+0JgrCbbYNXIX3IdTJ X-MS-Office365-Filtering-Correlation-Id: b96561e2-097c-4c36-b339-08d394650514 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1765; 2:Ni5K/lKYOAKzGrjZMW5Sufuh7MyjsCEZ3ZYCMSRj66IUml1/jIQyloRNQS08GjMSWYnNmZDPk8v7kq99oW7RExSCEyfsPIE5JocmfqnDkxNseLwRmg2+RqNRYd6n/ZM+9FM1F9mF/JxWSqBg62lho+Ak/meqcmULHLqaE5oxatM+jsulwW+tiOMZw14tUpQY; 3:gpvhl/+HbxB1rTYsj1cBp0tGCpT/nVtRHts+GHXCEMigSwQn8ECK0DsV/HOcmlwUYmq+ZEBM6VxjoMRSbcOSIagykDXoiRHaPLuwNw4gPqiVQ0MHiLMCXXAW8or6jE2pjvOpzlocJ2tMfEMVd66PeVeGo+uX15Fl8SFrg4uoL8o10StFSVeG2XzZRJlEWSVG8Vq0iPSSZ0oeGtuwUATta/gqeykHPwZ7qXmqhnLa2+0dk4utXJB3DqXdi6+FogDOemNdnjus12wWJPrBmuX9KQ== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:BY2PR0201MB1765; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1765; 25:fo7tLYZbyGCJV6ve4h+DPUaVm/kQwaYQBnytwsVNHp4qjffoCY8Y2ZBFBIJg+pERElQAYCztBZKr7Rhzs5V6nkWtUYFrudrYOApVNN5Sr6kx7TKI35OAntyXC6di0RrAPmKJxA3n/X8OiscVol8PL8ZB89LgLyVGPAhaNDTwWViGg/Z5vV9ZonmX55iDkn5CLK50VIJo5Kv19p91WB2CMpQzwDMDb+XHoW6WCyBIFW14D54EY45TjtsKIyBIrlFgxJNhY7s6DF/8VSAzB9EB/1MVhUV46xjWQfNjUgN9HAWiDmMMjAsPgsur/Z6UdYHK5pNK5dbDLv0BsSgBHZqR3IQfO7lLxU6/macusY7CkcoEaN5UsioT6vbBMwnPGmlA+gh2+lwlEHfbAtEXAhng504+5/vknEWTIRCEAtC/yU4TcOt9z5Bo1hcomXRzttHYkh79cEcUWUG70aNwvThpKI9xNEnK/M+bV3pwUFxg8ltmIkoqp+3JbsfNGoFReiP4yQfEOgpbzlYl2GebWvi9dLOd7KFm5OB2ySgnjDJ2I1DQuoactkKkmQMXEFWursZZQwGgxDRZd7Mj5mCZ1d/ms0yndnc2mPesdDVjunVhLxLAjKgjew3a5kAhMiZYxibk7n0MEn1i87xmctGlh+M6gS1HRQced4049pw/3RvpaExVGuqXISGh/tRztwArvhwJfKWcJ5nlKHqCswGNlommZZExbQdc6lWJFyXJAvt9R8TPjo6Iw8qOLQtc0IAg09K65VRZ/udKBSBggHbttUh9V/6iIaLk5Q5vDcfdl3H1OME= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1765; 20:xSe0WvdlM4awxTaVwJc6WJLFAVYF5xfcTi1nFhK464msdhM8Yf3ocSyxoorokStPK0Ifxd3u5eA6iBPbT2WSYUWWcauREDFLif80SNB5IE8KY2eE0o71/Z5/kLAX0e/KWS34u2iuA7d3pB1nQeJ/USqdpGrP4vpCJXJ0NUC6B9Zh0Uh4dCiEhoZANoHjV/ROJGhNrToprcme/KWpUAqR65AOt2KSYbIMRUysfWGkPbHNTbexponBBz9PBtw8YgqdREITyHj/Y4z5RTR7wz+CIKRKpoZXOVlmq4ARyikU4LaSweLVlmMctf4DcrMxHhet+j5VTh+0imdKg1yVAv0SAjUDVay5nClpJLTPk8YdKq6+PgWWNs16DJG2dp4m17V+GWHNUpFMZluY+z3Xyx+RsfA9cIU1dtEkd5UUJVyMVTFe2kxR1ZkPvHCtRXrXrvujilTuiLHE3e5uKw4vjW9QCctddKNr8olwMa1mxoAQAr88MJswZ2SGI1YgaSZ5QCpA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:BY2PR0201MB1765; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0201MB1765; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1765; 4:nz74gKjyHzWtnUvW6xTBx2UBLxPkrz7nzJ6MWSTyksNwWtz0wd/ecFUSSysWRx6Faf0m+RRactqjJG47CfRi36h3MtD+0V0I4qmmaiWM7jpKsSRUHwlNyV3+TTmw2RALq1kDYyWrHJW+QMaXT3RZegHMPbtE+9h7HRK/fOJ/8fel5v8ue7Mho8SsLQtI3w/0B1P1byyJ9qSjcmZuuaqtJ2UImSyD+oSp7vhs208JXv/7ZdLEmCtukP0Ky0bGYCSkvRXSpEz1GDpPG9g+wzD7wVahcd11CuU+GIpy1sY28E2lau3diHNZ/5C5R+hdqxZs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DiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2016 15:03:18.4102 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1765 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A value is assigned to the variable 'info' but that value is never used. Hence remove the variable 'info'. Signed-off-by: Bart Van Assche --- block/partition-generic.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/block/partition-generic.c b/block/partition-generic.c index d7eb77e..71d9ed9 100644 --- a/block/partition-generic.c +++ b/block/partition-generic.c @@ -495,7 +495,6 @@ rescan: /* add partitions */ for (p = 1; p < state->limit; p++) { sector_t size, from; - struct partition_meta_info *info = NULL; size = state->parts[p].size; if (!size) @@ -530,8 +529,6 @@ rescan: } } - if (state->parts[p].has_info) - info = &state->parts[p].info; part = add_partition(disk, p, from, size, state->parts[p].flags, &state->parts[p].info);