Re: [PATCH] iio/proximity/srf08: Improve unlocking of a mutex in srf08_read_ranging()

2017-10-26 Thread Jonathan Cameron
On Thu, 26 Oct 2017 17:00:07 +0200 SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 26 Oct 2017 16:51:08 +0200 > > Add a jump target so that a call of the function "mutex_unlock" is stored > only once at the end of this function implementation. > Replace two calls by goto statements

[PATCH] iio/proximity/srf08: Improve unlocking of a mutex in srf08_read_ranging()

2017-10-26 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 26 Oct 2017 16:51:08 +0200 Add a jump target so that a call of the function "mutex_unlock" is stored only once at the end of this function implementation. Replace two calls by goto statements. This issue was detected by using the Coccinelle software. Signed-off-b