mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
staging: iio: accel: Remove unnecessary else after goto in if block
This patch removes the unnecessary else following an if block with a goto statement. Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0fd736f9f4
commit
911568be45
@ -216,8 +216,7 @@ static int sca3000_read_ctrl_reg(struct sca3000_state *st,
|
||||
ret = sca3000_read_data_short(st, SCA3000_REG_ADDR_CTRL_DATA, 1);
|
||||
if (ret)
|
||||
goto error_ret;
|
||||
else
|
||||
return st->rx[0];
|
||||
return st->rx[0];
|
||||
error_ret:
|
||||
return ret;
|
||||
}
|
||||
|
@ -99,8 +99,7 @@ static int sca3000_read_first_n_hw_rb(struct iio_buffer *r,
|
||||
ret = sca3000_read_data_short(st, SCA3000_REG_ADDR_BUF_COUNT, 1);
|
||||
if (ret)
|
||||
goto error_ret;
|
||||
else
|
||||
num_available = st->rx[0];
|
||||
num_available = st->rx[0];
|
||||
/*
|
||||
* num_available is the total number of samples available
|
||||
* i.e. number of time points * number of channels.
|
||||
|
Loading…
Reference in New Issue
Block a user