linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging:lustre:obdclass:linux:convert &foo[0] to foo
@ 2016-01-20 20:01 Bhumika Goyal
  2016-02-03 22:44 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Bhumika Goyal @ 2016-01-20 20:01 UTC (permalink / raw)
  To: oleg.drokin, gregkh, joe
  Cc: andreas.dilger, linux-kernel, devel, lustre-devel, Bhumika Goyal

Replace &foo[0] with foo,to follow Linux coding style.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
index 11fe6cb..ecc2897 100644
--- a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
+++ b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
@@ -130,22 +130,22 @@ int obd_ioctl_getdata(char **buf, int *len, void *arg)
 	}
 
 	if (data->ioc_inllen1) {
-		data->ioc_inlbuf1 = &data->ioc_bulk[0];
+		data->ioc_inlbuf1 = data->ioc_bulk;
 		offset += cfs_size_round(data->ioc_inllen1);
 	}
 
 	if (data->ioc_inllen2) {
-		data->ioc_inlbuf2 = &data->ioc_bulk[0] + offset;
+		data->ioc_inlbuf2 = data->ioc_bulk + offset;
 		offset += cfs_size_round(data->ioc_inllen2);
 	}
 
 	if (data->ioc_inllen3) {
-		data->ioc_inlbuf3 = &data->ioc_bulk[0] + offset;
+		data->ioc_inlbuf3 = data->ioc_bulk + offset;
 		offset += cfs_size_round(data->ioc_inllen3);
 	}
 
 	if (data->ioc_inllen4)
-		data->ioc_inlbuf4 = &data->ioc_bulk[0] + offset;
+		data->ioc_inlbuf4 = data->ioc_bulk + offset;
 
 	return 0;
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] staging:lustre:obdclass:linux:convert &foo[0] to foo
  2016-01-20 20:01 [PATCH] staging:lustre:obdclass:linux:convert &foo[0] to foo Bhumika Goyal
@ 2016-02-03 22:44 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2016-02-03 22:44 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: oleg.drokin, joe, andreas.dilger, linux-kernel, devel, lustre-devel

On Thu, Jan 21, 2016 at 01:31:09AM +0530, Bhumika Goyal wrote:
> Replace &foo[0] with foo,to follow Linux coding style.

That's a coding style change?  Why?  They aren't always the same
thing...

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-03 22:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-20 20:01 [PATCH] staging:lustre:obdclass:linux:convert &foo[0] to foo Bhumika Goyal
2016-02-03 22:44 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).