Re: [PATCH 08/11] Staging: iio: accel: Use switch statement than if-else
On Mon, 5 Mar 2018 13:19:27 +0530 Himanshu Jhawrote: > Use switch statement instead of if-else pair to explicitly match > the only two channels present. > > Signed-off-by: Himanshu Jha I think this is going to generate some warnings
[PATCH 08/11] Staging: iio: accel: Use switch statement than if-else
Use switch statement instead of if-else pair to explicitly match the only two channels present. Signed-off-by: Himanshu Jha--- drivers/staging/iio/accel/adis16201.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git