Re: [PATCH 1/2] Staging:lustre:obdclass:linux:remove unnecessary braces
From: Joe Perches
Date: Wed Jan 20 2016 - 14:06:35 EST
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