|
@@ -90,7 +90,7 @@ static ssize_t smo8800_misc_read(struct file *file, char __user *buf,
|
|
struct smo8800_device, miscdev);
|
|
struct smo8800_device, miscdev);
|
|
|
|
|
|
u32 data = 0;
|
|
u32 data = 0;
|
|
- unsigned char byte_data = 0;
|
|
|
|
|
|
+ unsigned char byte_data;
|
|
ssize_t retval = 1;
|
|
ssize_t retval = 1;
|
|
|
|
|
|
if (count < 1)
|
|
if (count < 1)
|
|
@@ -103,7 +103,6 @@ static ssize_t smo8800_misc_read(struct file *file, char __user *buf,
|
|
if (retval)
|
|
if (retval)
|
|
return retval;
|
|
return retval;
|
|
|
|
|
|
- byte_data = 1;
|
|
|
|
retval = 1;
|
|
retval = 1;
|
|
|
|
|
|
if (data < 255)
|
|
if (data < 255)
|