Remove unnecessary enum assignments
@@ -34,8 +34,8 @@ static ssize_t device_write(struct file *, const char __user *, size_t,
static int major; /* major number assigned to our device driver */
enum {
- CDEV_NOT_USED = 0,
- CDEV_EXCLUSIVE_OPEN = 1,
+ CDEV_NOT_USED,
+ CDEV_EXCLUSIVE_OPEN,
};
/* Is device open? Used to prevent multiple access to device */
@@ -22,8 +22,8 @@
#define BUF_LEN 80
/* Is the device open right now? Used to prevent concurrent access into
@@ -29,8 +29,8 @@ static ssize_t device_write(struct file *file, const char __user *buf,
static int major;
static atomic_t already_open = ATOMIC_INIT(CDEV_NOT_USED);