[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/7] another small change in style for consistency
From: |
Marin Ramesa |
Subject: |
[PATCH 4/7] another small change in style for consistency |
Date: |
Fri, 13 Sep 2013 13:31:54 +0200 |
* device/dev_name.c: Change in coding style.
---
device/dev_name.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/device/dev_name.c b/device/dev_name.c
index 6ce4b19..7bdbf38 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -170,7 +170,7 @@ boolean_t dev_name_lookup(name, ops, unit)
*unit *= j;
/* find slice ? */
- if (c=='s') {
+ if (c == 's') {
cp++;
while ((c = *cp) != '\0' &&
c >= '0' && c <= '9') {
@@ -179,7 +179,7 @@ boolean_t dev_name_lookup(name, ops, unit)
}
}
- *unit += (slice_num <<4);
+ *unit += (slice_num << 4);
/* if slice==0, it is either compatability or whole device */
if (c >= 'a' && c < 'a' + j) { /* note: w/o this -> whole slice */
--
1.8.1.4
[PATCH 4/7] another small change in style for consistency,
Marin Ramesa <=
[PATCH 5/7] remove preprocessor comments, Marin Ramesa, 2013/09/13
[PATCH 6/7] use boolean_t instead of an int, Marin Ramesa, 2013/09/13
[PATCH 7/7] another small change in style for consistency, Marin Ramesa, 2013/09/13
Re: Small cleanup of device name routines, Samuel Thibault, 2013/09/15