aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-31 07:03:18 -0400
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-11-05 06:53:14 -0500
commitce7ff1cffdaf82354aca5f4c8691e5c85474fbde (patch)
tree2212e453c43111714cf02a6745ba0e8b295ac8ee
parent9968e12a291e639dd51d1218b694d440b22a917f (diff)
platform/x86: dell-smo8800: remove redundant assignments to byte_data
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>
-rw-r--r--drivers/platform/x86/dell-smo8800.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/dell-smo8800.c b/drivers/platform/x86/dell-smo8800.c
index 37e646034ef8..1d87237bc731 100644
--- a/drivers/platform/x86/dell-smo8800.c
+++ b/drivers/platform/x86/dell-smo8800.c
@@ -90,7 +90,7 @@ static ssize_t smo8800_misc_read(struct file *file, char __user *buf,
90 struct smo8800_device, miscdev); 90 struct smo8800_device, miscdev);
91 91
92 u32 data = 0; 92 u32 data = 0;
93 unsigned char byte_data = 0; 93 unsigned char byte_data;
94 ssize_t retval = 1; 94 ssize_t retval = 1;
95 95
96 if (count < 1) 96 if (count < 1)
@@ -103,7 +103,6 @@ static ssize_t smo8800_misc_read(struct file *file, char __user *buf,
103 if (retval) 103 if (retval)
104 return retval; 104 return retval;
105 105
106 byte_data = 1;
107 retval = 1; 106 retval = 1;
108 107
109 if (data < 255) 108 if (data < 255)