mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-27 00:04:47 +08:00
w1: ds2438: fixed a coding style issue
There is an if statement and, if the function goes into it, it returns. So, the next else is not required. Signed-off-by: Luiz Sampaio <sampaio.ime@gmail.com> Link: https://lore.kernel.org/r/20210519223046.13798-2-sampaio.ime@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c6fa1a96db
commit
ddb20bcf77
@ -154,11 +154,11 @@ static int w1_ds2438_change_config_bit(struct w1_slave *sl, u8 mask, u8 value)
|
||||
|
||||
if ((status & mask) == value)
|
||||
return 0; /* already set as requested */
|
||||
else {
|
||||
/* changing bit */
|
||||
status ^= mask;
|
||||
perform_write = 1;
|
||||
}
|
||||
|
||||
/* changing bit */
|
||||
status ^= mask;
|
||||
perform_write = 1;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user