From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757767AbcATTGc (ORCPT ); Wed, 20 Jan 2016 14:06:32 -0500 Received: from smtprelay0132.hostedemail.com ([216.40.44.132]:38772 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757351AbcATTG3 (ORCPT ); Wed, 20 Jan 2016 14:06:29 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3866:3867:3873:4321:5007:6261:10004:10400:10848:11026:11232:11657:11658:11914:12043:12114:12517:12519:12740:13069:13311:13357:13894:14659:21080:30054:30064:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:7,LUA_SUMMARY:none X-HE-Tag: page81_7297277daaf27 X-Filterd-Recvd-Size: 1630 Message-ID: <1453316786.22381.5.camel@perches.com> Subject: Re: [PATCH 1/2] Staging:lustre:obdclass:linux:remove unnecessary braces From: Joe Perches To: Bhumika Goyal , oleg.drokin@intel.com, gregkh@linuxfoundation.org Cc: andreas.dilger@intel.com, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, lustre-devel@lists.lustre.org Date: Wed, 20 Jan 2016 11:06:26 -0800 In-Reply-To: <15c9918abc5b46042246d7a5e82d595137be7daa.1453313907.git.bhumirks@gmail.com> References: <15c9918abc5b46042246d7a5e82d595137be7daa.1453313907.git.bhumirks@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.3-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2016-01-21 at 00:17 +0530, Bhumika Goyal wrote: > Fixed 'braces {} are not necessary for single statement blocks' > checkpatch.pl warning. [] > diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c [] > @@ -144,9 +144,8 @@ int obd_ioctl_getdata(char **buf, int *len, void *arg) >   offset += cfs_size_round(data->ioc_inllen3); >   } >   > - if (data->ioc_inllen4) { > + if (data->ioc_inllen4) >   data->ioc_inlbuf4 = &data->ioc_bulk[0] + offset; You might also consider converting uses of &foo[0] to foo