diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-03-04 16:30:24 +0200 |
---|---|---|
committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2016-06-01 15:42:50 -0600 |
commit | 5a4e9c9c9c37e7a907eccc9e112e9ecd1970b862 (patch) | |
tree | f94aa6d98716e6185dff615eab4e4421980cc656 | |
parent | 450abebc37405e8a6b0167a7aa60922315e76b4c (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>
(cherry picked from commit 8fa11d1c1322f3de40a0e3f3f3e57436a204fcc4)
-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 0dd8f4c996f1..a6c6b2d6a67b 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) if (ret) goto err_free; - ret = 0; - if (stm->data->link) ret = stm->data->link(stm->data, stmf->output.master, stmf->output.channel); |