Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751744AbbLUTKf (ORCPT ); Mon, 21 Dec 2015 14:10:35 -0500 Received: from mout.web.de ([212.227.15.3]:60368 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbbLUTKb (ORCPT ); Mon, 21 Dec 2015 14:10:31 -0500 Subject: [PATCH v2 2/4] staging: lustre: Delete an unnecessary variable initialisation in mgc_process_recover_log() To: lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, Andreas Dilger , Greg Kroah-Hartman , Oleg Drokin References: <566ABCD9.1060404@users.sourceforge.net> <566D7733.1030102@users.sourceforge.net> <56784D83.7080108@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <56784EA1.3090407@users.sourceforge.net> Date: Mon, 21 Dec 2015 20:10:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <56784D83.7080108@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:RpdHwLOP0KeZSs4sbUxQTuvnV5PBcCdTCvSPDDCMIxDcRZJFPz/ oLF1Q4XRLLwo83w3zWJuNRUEJOa63+OtKP7StZLzDpe0Uik97yuYMBFKFCe8HTfCef4vEF/ TbvY5ugfUCaChEvMsaT45dFDP7blHwGe8v97Qehs6Pky0BuHYyQqUvg8x+dyhlHjmNyG+Lj nfDufu2Hce9Wdy4UtIyjQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:vSbt/mk7bkw=:3QtljmnB6CEoBaQlei7U0r DsOuxhobY6V0jrb/82dE8P86Yk4svWKYwXocZEKT2hjK/3b0zC0JIU+oVU8gQWiKbqTwPWFUy 4+lWdxwSZEf2t6jTL8k2qOSb52S/6gKl5KlYwuKdiunLBqwosLdQMt5++tDO+izuyr8xmUEmP /jDC97OjEeo6JT8j6+d4Vf7ljmWPkBez3IcJYblUW7Pjs9Wxw3Xzj2bJ9S4dSWfuNmc+dKLkF AEqktztCm85U00WrB1D0VfBwJNGbRtO/KOIx00rSly+q3L/tNu+3CwdUQih62qadB/W8LkBIo 7T1fA2UjBio2o2S0fJViTOQ3oitKhq9u9a93OHw8c1W72eeMkbMO7AJijCSqAq7YwMWgcSm6S UsO7cNJgV+OF/DBansMK7QC482s+1GSJ1iJ8QsJEjY//mwdtAhnP2ERqhEl71IblxehXAh2hm JCU2T54llskvxUYiKD7F8rsSTre+d1XGKjMWNFx4ie/I3Ho3lJnPA7XaFTREDA1Qq9od8zZ/m zNE4ppgcu91IHHqHlgpceWwhx2tLVO5ajph3IhDM5uMzRV8gbUDk8qUPrm22/lZT0dovDQuMj ErngPmzmPW8v1z/ch/ScPWggTsSIuOom8dacTIvV8CqFQptzYiz1xI2g04hbnzZdPJBXpNutx Z5dH9QI8usYGR85L5CqlTT7N6vDlfVlJY0T8i6LosD/78bUEDSoChwRJjaUOJBX2G26iZ9X3I 7a1GdVsX41835uip/ZS3HdNobPahicZ0dnLsS4RYOhpeLU48G4GMbjPPNm6kxPrN+71jAjC9a OIatvG7 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1166 Lines: 33 From: Markus Elfring Date: Mon, 21 Dec 2015 18:24:45 +0100 The variable "mne_swab" will eventually be set to an appropriate value from a call of the ptlrpc_rep_need_swab() function. Thus let us omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c b/drivers/staging/lustre/lustre/mgc/mgc_request.c index 2c48847..da130f4 100644 --- a/drivers/staging/lustre/lustre/mgc/mgc_request.c +++ b/drivers/staging/lustre/lustre/mgc/mgc_request.c @@ -1293,7 +1293,7 @@ static int mgc_process_recover_log(struct obd_device *obd, struct page **pages; int nrpages; bool eof = true; - bool mne_swab = false; + bool mne_swab; int i; int ealen; int rc; -- 2.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/