Skip to content

Commit d47e33e

Browse files
jamesasimmonsgregkh
authored andcommitted
staging: lustre: fix spacing issues checkpatch reported in lnet selftest
Remove any extra spacing as reported by checkpatch. Signed-off-by: James Simmons <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8a2c230 commit d47e33e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

drivers/staging/lustre/lnet/selftest/brw_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ brw_check_page(struct page *pg, int pattern, __u64 magic)
194194
return 0;
195195

196196
if (pattern == LST_BRW_CHECK_SIMPLE) {
197-
data = *((__u64 *) addr);
197+
data = *((__u64 *)addr);
198198
if (data != magic)
199199
goto bad_data;
200200

201201
addr += PAGE_CACHE_SIZE - BRW_MSIZE;
202-
data = *((__u64 *) addr);
202+
data = *((__u64 *)addr);
203203
if (data != magic)
204204
goto bad_data;
205205

@@ -208,7 +208,7 @@ brw_check_page(struct page *pg, int pattern, __u64 magic)
208208

209209
if (pattern == LST_BRW_CHECK_FULL) {
210210
for (i = 0; i < PAGE_CACHE_SIZE / BRW_MSIZE; i++) {
211-
data = *(((__u64 *) addr) + i);
211+
data = *(((__u64 *)addr) + i);
212212
if (data != magic)
213213
goto bad_data;
214214
}

drivers/staging/lustre/lnet/selftest/console.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ lstcon_group_alloc(char *name, lstcon_group_t **grpp)
207207

208208
grp->grp_ref = 1;
209209
if (name) {
210-
if (strlen(name) > sizeof(grp->grp_name)-1) {
210+
if (strlen(name) > sizeof(grp->grp_name) - 1) {
211211
LIBCFS_FREE(grp, offsetof(lstcon_group_t,
212212
grp_ndl_hash[LST_NODE_HASHSIZE]));
213213
return -E2BIG;
@@ -525,7 +525,7 @@ lstcon_group_add(char *name)
525525
lstcon_group_t *grp;
526526
int rc;
527527

528-
rc = lstcon_group_find(name, &grp) ? 0: -EEXIST;
528+
rc = lstcon_group_find(name, &grp) ? 0 : -EEXIST;
529529
if (rc) {
530530
/* find a group with same name */
531531
lstcon_group_decref(grp);
@@ -1746,7 +1746,7 @@ lstcon_session_new(char *name, int key, unsigned feats,
17461746
console_session.ses_timeout = (timeout <= 0) ?
17471747
LST_CONSOLE_TIMEOUT : timeout;
17481748

1749-
if (strlen(name) > sizeof(console_session.ses_name)-1)
1749+
if (strlen(name) > sizeof(console_session.ses_name) - 1)
17501750
return -E2BIG;
17511751
strncpy(console_session.ses_name, name,
17521752
sizeof(console_session.ses_name));

drivers/staging/lustre/lnet/selftest/selftest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ typedef struct sfw_test_case {
415415
srpc_client_rpc_t *
416416
sfw_create_rpc(lnet_process_id_t peer, int service,
417417
unsigned features, int nbulkiov, int bulklen,
418-
void (*done) (srpc_client_rpc_t *), void *priv);
418+
void (*done)(srpc_client_rpc_t *), void *priv);
419419
int sfw_create_test_rpc(sfw_test_unit_t *tsu,
420420
lnet_process_id_t peer, unsigned features,
421421
int nblk, int blklen, srpc_client_rpc_t **rpc);

drivers/staging/lustre/lnet/selftest/timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
struct stt_timer {
4242
struct list_head stt_list;
4343
time64_t stt_expires;
44-
void (*stt_func) (void *);
44+
void (*stt_func)(void *);
4545
void *stt_data;
4646
};
4747

0 commit comments

Comments
 (0)