From: Bhumika Goyal <bhumirks@gmail.com>
To: oleg.drokin@intel.com, gregkh@linuxfoundation.org, joe@perches.com
Cc: andreas.dilger@intel.com, linux-kernel@vger.kernel.org,
devel@driverdev.osuosl.org, lustre-devel@lists.lustre.org,
Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH] staging:lustre:obdclass:linux:convert &foo[0] to foo
Date: Thu, 21 Jan 2016 01:31:09 +0530 [thread overview]
Message-ID: <1453320069-9788-1-git-send-email-bhumirks@gmail.com> (raw)
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
next reply other threads:[~2016-01-20 20:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-20 20:01 Bhumika Goyal [this message]
2016-02-03 22:44 ` [PATCH] staging:lustre:obdclass:linux:convert &foo[0] to foo Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1453320069-9788-1-git-send-email-bhumirks@gmail.com \
--to=bhumirks@gmail.com \
--cc=andreas.dilger@intel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lustre-devel@lists.lustre.org \
--cc=oleg.drokin@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).