X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Ftty%2Fhvc%2Fhvsi_lib.c;h=7ae6c293e518a3be6d85013757880b1e3295250e;hb=7b05520160a3252577f9a258609499b73f3bdef1;hp=347050ea414a7f37e3962869f29437129cea1c75;hpb=b7d3622a39fde7658170b7f3cf6c6889bb8db30d;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 347050ea414a..a270f04588d7 100644 --- a/drivers/tty/hvc/hvsi_lib.c +++ b/drivers/tty/hvc/hvsi_lib.c @@ -1,5 +1,4 @@ #include -#include #include #include #include @@ -406,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; }