Skip to content

Commit

Permalink
ALSA: xen-front: remove redundant error check on ret
Browse files Browse the repository at this point in the history
The error for a -ve value in ret is redundant as all previous
assignments to ret have an associated -ve check and hence it
is impossible for ret to be less that zero at the point of the
check.  Remove this redundant error check.

Detected by CoveritScan, CID#1469407 ("Logically Dead code")

Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Takashi Sakamoto <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Colin Ian King authored and tiwai committed May 28, 2018
1 parent 6a73cf4 commit 3d62461
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/xen/xen_snd_front_evtchnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ int xen_snd_front_evtchnl_create_all(struct xen_snd_front_info *front_info,
}
}
}
if (ret < 0)
goto fail;

front_info->num_evt_pairs = num_streams;
return 0;
Expand Down

0 comments on commit 3d62461

Please sign in to comment.