summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-09-13 13:31:55 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-16 02:01:06 +0200
commit51eb43efdaa323eca92b47be2b0b4ecec07bedb5 (patch)
treee9e78c13f0a30d285c8db85209e4e1b84e9f1267
parentdeb4207e2f4d1cab2f59318e22e70964ab1f42a4 (diff)
remove preprocessor comments
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.
-rw-r--r--device/dev_name.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/device/dev_name.c b/device/dev_name.c
index f970cf68..b560b0a6 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -104,10 +104,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)
*/
@@ -184,9 +180,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);
}
}