X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Ftty%2Fhvc%2Fhvsi_lib.c;h=a270f04588d710e7dd4f716049abcfc4a3ebaae4;hb=379a2d31cb8d1eddf1970be95b871b4371be296a;hp=7ae6c293e518a3be6d85013757880b1e3295250e;hpb=915ac4e26ef9c39a0f831e935509243732abedc0;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/tty/hvc/hvsi_lib.c b/drivers/tty/hvc/hvsi_lib.c index 7ae6c293e518..a270f04588d7 100644 --- a/drivers/tty/hvc/hvsi_lib.c +++ b/drivers/tty/hvc/hvsi_lib.c @@ -405,8 +405,7 @@ void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) hvsi_send_close(pv); } - if (pv->tty) - tty_kref_put(pv->tty); + tty_kref_put(pv->tty); pv->tty = NULL; }