Skip to content

Commit

Permalink
platform/x86: dell-smo8800: remove redundant assignments to byte_data
Browse files Browse the repository at this point in the history
Variable byte_data is being initialized and re-assigned with values that
are never read. Remove these as these redundant assignments. Cleans up
clang warning:

drivers/platform/x86/dell-smo8800.c:106:2: warning: Value stored to 'byte_data'
is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  • Loading branch information
Colin Ian King authored and Andy Shevchenko committed Nov 5, 2017
1 parent 9968e12 commit ce7ff1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/platform/x86/dell-smo8800.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static ssize_t smo8800_misc_read(struct file *file, char __user *buf,
struct smo8800_device, miscdev);

u32 data = 0;
unsigned char byte_data = 0;
unsigned char byte_data;
ssize_t retval = 1;

if (count < 1)
Expand All @@ -103,7 +103,6 @@ static ssize_t smo8800_misc_read(struct file *file, char __user *buf,
if (retval)
return retval;

byte_data = 1;
retval = 1;

if (data < 255)
Expand Down

0 comments on commit ce7ff1c

Please sign in to comment.