Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114403imm; Mon, 3 Sep 2018 19:47:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYPd1jz9lKzfJVoH/C9ENh08oI7FjrFljR7BeX0vPwG+n9tUW3VG2BoviMdtu/Bupf0Ztzm X-Received: by 2002:a63:ef4f:: with SMTP id c15-v6mr28674393pgk.368.1536029220483; Mon, 03 Sep 2018 19:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029220; cv=none; d=google.com; s=arc-20160816; b=qZtyq3bpAoyY+aSkU01GUKqd3fJQty1XRj/dr5pV3l1wswysLtsYXgOYCXwA/mVmld Fxn3jBguVXS94xq30WZqGb8XYIWc8iV3xJ7YC7fmaNzJQLW9p6JfkctGrMh6XtCDkbMu TYU1ZF4Due+b8uJ572GA2kpClazWqvIscuEEipQGEAWuS+tV7mDVlc5bFXEh4dKM/S05 yybBvZEn1qp/bjFawKRHCbbJZAnadXKnn4dUq0gyGnHT9sUPwuwE6MsofEM7mwEUhE6+ h56GOtDOZdQBTFeUEdwiVYRUNr+tMjRefPAWJOZzIHjvKYqh4c/zXOJy0l5gcIcitoHL S8Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=tRdeqz+78ESzrb/nXjyBB6nqAAwIdJ3C0aGuFwzfOGg=; b=WlIloSwkQ9xO7VQ34R55o0I0KugSjT465ygzHLC/PmoBG1gc/gPOFCb7jnW2pB++J3 oXbKC2Q9LqNqT0M/Y4ZjJP+kjBR2+X+gap5wq98U/WmbDvbZFLMo1OdY+8pJC+gsxWTe yfuzw+cRBfV+PcB6zCovZqXfQGkgW6Oiim/wPNdz4yDViPX5lrKRxCnRtHC/PnRfGgU8 f0mE15DCKXAQ922B4ExIFZ2IWfEndZ/TXloX1YuXHEgYiqOXs6mfWrk9YChgLic0Rc1A kiTTHMGFIA0dikHOWKVkFrJMwsHnglt+gO8vUv8OlmAkORqsFGMv8wDN/YA+lAT9uTQR vSng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lbkt1Plx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u70-v6si18826809pgd.296.2018.09.03.19.46.45; Mon, 03 Sep 2018 19:47:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lbkt1Plx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727379AbeIDHIX (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:23 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40872 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbeIDHIW (ORCPT ); Tue, 4 Sep 2018 03:08:22 -0400 Received: by mail-pf1-f195.google.com with SMTP id s13-v6so906325pfi.7; Mon, 03 Sep 2018 19:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tRdeqz+78ESzrb/nXjyBB6nqAAwIdJ3C0aGuFwzfOGg=; b=Lbkt1PlxVxfnVteEhPuZCMen61t/VT9dOcKgDaqKWjZ9uaMuAeJC1g2S72yEPZThiH jn/XI/ZimRlTHJ5JUCrUuzijODGVRgV7RwSfAuAuAn3cCwi0OXJSK+bZzA3MhA3ue3oY ykaxoEFwTzDAJQ+wAkTnPJvHL+0BRCoP5pq858TSLFDRjcfTbqFlgsLWvKmQM+HQwnQ7 Xehsi9XWThKKXhu/+NOcW2UJyNcJHzOhtB3OTO4mYsfsIPC/Rpe1cpr8st02yfxnYAyT yHPCG7i0rrekINkocDYZ180/nHSZDNCnJK6kxoFz/n+zpvk8K6uyyOrTGHsQyR+nM5qu ul7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tRdeqz+78ESzrb/nXjyBB6nqAAwIdJ3C0aGuFwzfOGg=; b=EcEhrEXQDJw4Q0Z5svFzTvebzHnnkh/RQJl4agJaxx+S+C9ykapQcIHzs8T9PegzsJ JdOOidp96OHkMtAsDpLGvFTwh5ksiAFcE2ZwpU+kVM+j5Ud95B/F3ob+k8omEKY/Sz9c OUx5mlv5ozU7HL02UHDhG6x1uc6E4rLcl0kwOUC7BlnLllZURzxulOq0Y801U2O6CvOG cokbEkRTfbojlbq9Oy87jIIujyvjUfI+7TnVLDqjBWy/YCBJr+QFDfqUeIxp397WhthS ycoQS+1Jhsk+Ednn8ltBqVzQMbDpiZLQ4NNlXeUSHMU3FYYFOO1A7203hOe0O81yokl6 He1w== X-Gm-Message-State: APzg51CN9hkIbc9zJobd4D9sinYcAb2SF3HeHzEpjfjC+PxevHiMRWp3 FbtuPVtWlnry4qw9xwX/lIU= X-Received: by 2002:a63:e647:: with SMTP id p7-v6mr28111566pgj.218.1536029127255; Mon, 03 Sep 2018 19:45:27 -0700 (PDT) Received: from climb.lge.net ([27.122.242.77]) by smtp.gmail.com with ESMTPSA id w16-v6sm33663284pfi.101.2018.09.03.19.45.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45:26 -0700 (PDT) From: Jaejoong Kim To: linux-um@lists.infradead.org, netdev@vger.kernel.org, linux-mmc@vger.kernel.org, linux-s390@vger.kernel.org, devel@driverdev.osuosl.org, greybus-dev@lists.linaro.org, linuxppc-dev@lists.ozlabs.org, linux-serial@vger.kernel.org, sparclinux@vger.kernel.org, linux-usb@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby Subject: [PATCH 06/25] tty: hvc: hvcs: Change return type to void Date: Tue, 4 Sep 2018 11:44:32 +0900 Message-Id: <1536029091-4426-7-git-send-email-climbbb.kim@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536029091-4426-1-git-send-email-climbbb.kim@gmail.com> References: <1536029091-4426-1-git-send-email-climbbb.kim@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since tty_port_install() always returns 0, the return type has changed to void. Now apply this and remove the obsolete error check. Signed-off-by: Jaejoong Kim --- drivers/tty/hvc/hvcs.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c index cb4db1b..4dfa70c 100644 --- a/drivers/tty/hvc/hvcs.c +++ b/drivers/tty/hvc/hvcs.c @@ -1140,16 +1140,10 @@ static int hvcs_install(struct tty_driver *driver, struct tty_struct *tty) goto err_put; } - retval = tty_port_install(&hvcsd->port, driver, tty); - if (retval) - goto err_irq; + tty_port_install(&hvcsd->port, driver, tty); return 0; -err_irq: - spin_lock_irqsave(&hvcsd->lock, flags); - vio_disable_interrupts(hvcsd->vdev); - spin_unlock_irqrestore(&hvcsd->lock, flags); - free_irq(irq, hvcsd); + err_put: tty_port_put(&hvcsd->port); -- 2.7.4