Skip to contentSkip to conversation

devices: Trivial coding style fix

PATCH New Namhyung Kim 1 participant 1 message Oct 18, 2012

lore
Share & tools
lore

Namhyung Kim

author
#0 lore raw

PATCH 1/1 devices: Trivial coding style fix

* block statement doesn't need a semicolon.
* put closing curly bracket of function on a new line.

Signed-off-by Namhyung Kim <namhyung(a)gmail.com>
---
 src/devices/rfkill.cpp |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
src/devices/rfkill.cpp +3 -2
index 750175c..2404432 100644
@@ -63,11 +63,12 @@ rfkill::rfkill(char *_name, char *path): device()
 	sprintf(filename, "%s/device/driver", path);
 	if (readlink(filename, line, 4096) > 0) {
 		sprintf(humanname, _("Radio device: %s"), basename(line));
-	};
+	}
 	sprintf(filename, "%s/device/device/driver", path);
 	if (readlink(filename, line, 4096) > 0) {
 		sprintf(humanname, _("Radio device: %s"), basename(line));
-	}}
+	}
+}
 
 void rfkill::start_measurement(void)
 {
Signature · 1 line
1.7.9.2