drivers/misc: ti-st: Remove unneeded variable in st_tty_open
[ Upstream commit 8b063441b7417a79b0c27efc401479748ccf8ad1 ] st_tty_open do not need local variable to store different value, Hence just remove it. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Link: https://lore.kernel.org/r/1568307147-43468-1-git-send-email-zhongjiang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Stable-dep-of: c83212d79be2 ("firmware: arm_sdei: Fix the input parameter of cpuhp_remove_state()") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ac7df3fc80
commit
3c2206700e
1 changed files with 2 additions and 2 deletions
|
|
@ -709,7 +709,6 @@ EXPORT_SYMBOL_GPL(st_unregister);
|
|||
*/
|
||||
static int st_tty_open(struct tty_struct *tty)
|
||||
{
|
||||
int err = 0;
|
||||
struct st_data_s *st_gdata;
|
||||
pr_info("%s ", __func__);
|
||||
|
||||
|
|
@ -732,7 +731,8 @@ static int st_tty_open(struct tty_struct *tty)
|
|||
*/
|
||||
st_kim_complete(st_gdata->kim_data);
|
||||
pr_debug("done %s", __func__);
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void st_tty_close(struct tty_struct *tty)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue