From: Alexander Shishkin Date: Fri, 4 Mar 2016 14:30:24 +0000 (+0200) Subject: stm class: Remove a pointless line X-Git-Tag: firefly_0821_release~176^2~4^2~44^2~40 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5a4e9c9c9c37e7a907eccc9e112e9ecd1970b862;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Alexander Shishkin Reviewed-by: Laurent Fert (cherry picked from commit 8fa11d1c1322f3de40a0e3f3f3e57436a204fcc4) --- 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);