[Stgt-devel] [PATCH] Coding style update
Mark Harvey
markh794
Fri Jul 18 10:13:09 CEST 2008
This is so minor.. Please feel free to ignore.
>From e9a5eda664cde38f8aeb48df480a3dd230e3965d Mon Sep 17 00:00:00 2001
From: Mark Harvey <markh794 at gmail.com>
Date: Fri, 18 Jul 2008 18:04:03 +1000
Subject: Coding style update.
Remove unnecessary grouping around if statements.
Signed-off-by: Mark Harvey <markh794 at gmail.com>
---
usr/spc.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/usr/spc.c b/usr/spc.c
index da0187f..bd2c975 100644
--- a/usr/spc.c
+++ b/usr/spc.c
@@ -977,11 +977,10 @@ int lu_config(struct scsi_lu *lu, char *params, match_fn_t *fn)
break;
case Opt_online:
match_strncpy(buf, &args[0], sizeof(buf));
- if (atoi(buf)) {
+ if (atoi(buf))
lu->dev_type_template.lu_online(lu);
- } else {
+ else
lu->dev_type_template.lu_offline(lu);
- }
break;
case Opt_mode_page:
match_strncpy(buf, &args[0], sizeof(buf));
--
1.5.4.3
More information about the stgt
mailing list