Re: [PATCH] [media] si2165: Refactoring for si2165_writereg_mask8()

2016-01-04 Thread Matthias Schwarzott
Am 27.12.2015 um 18:33 schrieb SF Markus Elfring: > From: Markus Elfring > Date: Sun, 27 Dec 2015 18:23:57 +0100 > > This issue was detected by using the Coccinelle software. > > 1. Let us return directly if a call of the si2165_readreg8() >function failed. >

[PATCH] [media] si2165: Refactoring for si2165_writereg_mask8()

2015-12-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 27 Dec 2015 18:23:57 +0100 This issue was detected by using the Coccinelle software. 1. Let us return directly if a call of the si2165_readreg8() function failed. 2. Reduce the scope for the local variables "ret" and "tmp" to