Skip to content

Commit

Permalink
stm class: Remove a pointless line
Browse files Browse the repository at this point in the history
No point in explicitly setting something to zero right after we
explicitly checked that it is zero. Fix this.

Reported-by: Alan Cox <alan.cox@intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Laurent Fert <laurent.fert@intel.com>
(cherry picked from commit 8fa11d1c1322f3de40a0e3f3f3e57436a204fcc4)
  • Loading branch information
virtuoso authored and mathieupoirier committed Jun 1, 2016
1 parent 450abeb commit 5a4e9c9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/hwtracing/stm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,6 @@ static int stm_char_policy_set_ioctl(struct stm_file *stmf, void __user *arg)
if (ret)
goto err_free;

ret = 0;

if (stm->data->link)
ret = stm->data->link(stm->data, stmf->output.master,
stmf->output.channel);
Expand Down

0 comments on commit 5a4e9c9

Please sign in to comment.