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

mfd: ezx-pcap: Repair coding style errors picked up with checkpatch

This is part of an effort to clean-up the MFD subsystem.

WARNING: sizeof t should be sizeof(t)
+ memset(&t, 0, sizeof t);

WARNING: void function return statements are not generally useful
+ return;
+}

total: 0 errors, 2 warnings, 542 lines checked

Signed-off-by: Lee Jones <lee.jones@linaro.org>

Lee Jones 0309528a c06f308a

+1 -2
+1 -2
drivers/mfd/ezx-pcap.c
··· 62 62 struct spi_message m; 63 63 int status; 64 64 65 - memset(&t, 0, sizeof t); 65 + memset(&t, 0, sizeof(t)); 66 66 spi_message_init(&m); 67 67 t.len = sizeof(u32); 68 68 spi_message_add_tail(&t, &m); ··· 211 211 212 212 desc->irq_data.chip->irq_ack(&desc->irq_data); 213 213 queue_work(pcap->workqueue, &pcap->isr_work); 214 - return; 215 214 } 216 215 217 216 /* ADC */