Skip to contentSkip to conversation

cdrom:cdrom - Change 1 to true for bool type variables during assignments.

PATCH New Shailendra Verma 1 participant 1 message May 25, 2015 Uniform cdrom driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cdrom:cdrom - Change 1 to true for bool type variables during assignments.

The variables autoclose, lockdoor and mrw_format_restart are bool type. So assigning the value as true instead of 1.

---
 drivers/cdrom/cdrom.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/cdrom/cdrom.c +3 -3
index 5d28a45..76119d5 100644
@@ -287,13 +287,13 @@
 /* used to tell the module to turn on full debugging messages */
 static bool debug;
 /* default compatibility mode */
-static bool autoclose=1;
+static bool autoclose = true;
 static bool autoeject;
-static bool lockdoor = 1;
+static bool lockdoor = true;
 /* will we ever get to use this... sigh. */
 static bool check_media_type;
 /* automatically restart mrw format */
-static bool mrw_format_restart = 1;
+static bool mrw_format_restart = true;
 module_param(debug, bool, 0);
 module_param(autoclose, bool, 0);
 module_param(autoeject, bool, 0);
Signature · 1 line
1.7.9.5