diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-03-04 09:30:24 -0500 |
---|---|---|
committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-04-08 09:11:52 -0400 |
commit | 8fa11d1c1322f3de40a0e3f3f3e57436a204fcc4 (patch) | |
tree | c7c1e9e54881fbe96fa4843d374a1b09bb1eff42 /drivers/hwtracing/stm | |
parent | c8be4899449c0b27bc5daf71742cd601b2b3b4e3 (diff) |
stm class: Remove a pointless line
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>
Diffstat (limited to 'drivers/hwtracing/stm')
-rw-r--r-- | drivers/hwtracing/stm/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c index de80d45d8df9..18f176eac06d 100644 --- a/drivers/hwtracing/stm/core.c +++ b/drivers/hwtracing/stm/core.c | |||
@@ -546,8 +546,6 @@ static int stm_char_policy_set_ioctl(struct stm_file *stmf, void __user *arg) | |||
546 | if (ret) | 546 | if (ret) |
547 | goto err_free; | 547 | goto err_free; |
548 | 548 | ||
549 | ret = 0; | ||
550 | |||
551 | if (stm->data->link) | 549 | if (stm->data->link) |
552 | ret = stm->data->link(stm->data, stmf->output.master, | 550 | ret = stm->data->link(stm->data, stmf->output.master, |
553 | stmf->output.channel); | 551 | stmf->output.channel); |