[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/7] remove preprocessor comments
From: |
Marin Ramesa |
Subject: |
[PATCH 5/7] remove preprocessor comments |
Date: |
Fri, 13 Sep 2013 13:31:55 +0200 |
The first one is a message that name lookup has been called, which
I think is safe to remove, or maybe add #if DEBUG. Second one is a
alternate calculation that I doubt it will ever be used, so I think
it's safe to remove it.
* device/dev_name.c: Remove preprocessor comments.
---
device/dev_name.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/device/dev_name.c b/device/dev_name.c
index 7bdbf38..a9056ff 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -107,10 +107,6 @@ boolean_t dev_name_lookup(name, ops, unit)
int slice_num = 0;
-#if 0
- printf("lookup on name %s\n",name);
-#endif /* 0 */
-
/*
* Find device type name (characters before digit)
*/
@@ -187,9 +183,6 @@ boolean_t dev_name_lookup(name, ops, unit)
* Minor number is <subdev_count>*unit + letter.
* NOW it is slice result + letter
*/
-#if 0
- *unit = *unit * j + (c - 'a' +1); /* +1 to start 'a' at 1 */
-#endif /* 0 */
*unit += (c - 'a' +1);
}
}
--
1.8.1.4
[PATCH 4/7] another small change in style for consistency, Marin Ramesa, 2013/09/13
[PATCH 5/7] remove preprocessor comments,
Marin Ramesa <=
[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