mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
ctcm: fix error return code
Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // </smpl> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6531084c3e
commit
b8f37a4aa0
1 changed files with 1 additions and 1 deletions
|
@ -1454,7 +1454,7 @@ static int add_channel(struct ccw_device *cdev, enum ctcm_channel_types type,
|
|||
ch_fsm_len, GFP_KERNEL);
|
||||
}
|
||||
if (ch->fsm == NULL)
|
||||
goto free_return;
|
||||
goto nomem_return;
|
||||
|
||||
fsm_newstate(ch->fsm, CTC_STATE_IDLE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue