Skip to content

Commit

Permalink
drivers/misc: ti-st: Remove unneeded variable in st_tty_open
Browse files Browse the repository at this point in the history
st_tty_open do not need local variable to store different value,
Hence just remove it.

Signed-off-by: zhong jiang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
xiongzhongjiang authored and gregkh committed Oct 4, 2019
1 parent 54ecb8f commit 8b06344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/misc/ti-st/st_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,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__);

Expand All @@ -731,7 +730,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)
Expand Down

0 comments on commit 8b06344

Please sign in to comment.