Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging/cptm1217: fix checkpatch warnings about else clause

Signed-off-by: Evgeny Budilovsky <budevg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Evgeny Budilovsky and committed by
Greg Kroah-Hartman
55a4ea71 2a838c64

+7 -8
+7 -8
drivers/staging/cptm1217/clearpad_tm1217.c
··· 147 147 msleep(WAIT_FOR_RESPONSE); 148 148 for (i = 0; i < MAX_RETRIES; i++) { 149 149 retval = i2c_master_recv(ts->client, &req[1], size); 150 - if (retval == size) { 150 + if (retval == size) 151 151 break; 152 - } else { 153 - msleep(INCREMENTAL_DELAY); 154 - dev_dbg(ts->dev, "cp_tm1217: Retry count is %d\n", i); 155 - } 152 + 153 + msleep(INCREMENTAL_DELAY); 154 + dev_dbg(ts->dev, "cp_tm1217: Retry count is %d\n", i); 156 155 } 157 156 if (retval != size) 158 157 dev_err(ts->dev, "cp_tm1217: Read from device failed\n"); ··· 287 288 if (ts->thread_running == 1) { 288 289 mutex_unlock(&ts->thread_mutex); 289 290 return IRQ_HANDLED; 290 - } else { 291 - ts->thread_running = 1; 292 - mutex_unlock(&ts->thread_mutex); 293 291 } 292 + 293 + ts->thread_running = 1; 294 + mutex_unlock(&ts->thread_mutex); 294 295 295 296 /* Mask the interrupts */ 296 297 retval = cp_tm1217_mask_interrupt(ts);