lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1453320069-9788-1-git-send-email-bhumirks@gmail.com>
Date:	Thu, 21 Jan 2016 01:31:09 +0530
From:	Bhumika Goyal <bhumirks@...il.com>
To:	oleg.drokin@...el.com, gregkh@...uxfoundation.org, joe@...ches.com
Cc:	andreas.dilger@...el.com, linux-kernel@...r.kernel.org,
	devel@...verdev.osuosl.org, lustre-devel@...ts.lustre.org,
	Bhumika Goyal <bhumirks@...il.com>
Subject: [PATCH] staging:lustre:obdclass:linux:convert &foo[0] to foo

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

Signed-off-by: Bhumika Goyal <bhumirks@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ