Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2115442imm; Mon, 3 Sep 2018 19:49:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmZ4SaltnCad4oxU6ra+wzecsZsl2LjWCWdaLUp3UpJaLhxkmINukdv+HN7InDeIcIb4iC X-Received: by 2002:a17:902:7e09:: with SMTP id b9-v6mr2977452plm.221.1536029373140; Mon, 03 Sep 2018 19:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029373; cv=none; d=google.com; s=arc-20160816; b=QPPoveVFP3n5olgf5zrr0vz3n6ah7t4LStkDbefq5iL59H6FMGcdSZA83mPiSs29hD QBZ6UGzbR4Gpf4K84DyAEJbQc2nq0ocV2kQXaKycKUewOZ7q/EAj82CozU2NryLT9jsc yUtv2qlCIXgC4h4VQr3OcAU/cn4xQ0LiHy0NBotMtz0KcMP2nhDUzlabAXA1n05X1rZX y+hiNhnU9C++fA7AkKtok0Y/aHj1lu1MZ9+3BjeiaRub+f1kMiqmoukXHo9lLVPAnvic D/ZgLJJUetPkZhiUtNdlMwtha5ovi52z6jnyDDJw08YzOgFsGTbeZmuOqKFnjtkR6cB4 af3g== 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=fA2ErCgkNSVCLrHl8v8rTEOByo32QmaLjON3C67ERi8=; b=VJ3+7niNQrCrfYR1b0j1CaXHPy2jZ3vB7yhJXoq8JzDoeWpnpX1HI9HauwDmUVtwem OmBGZFAjuhtWJ3MjTwY9MOHN4tOsrcDFJNuNvAH+RY4Di9DXFhkDWQBoTCEhBu7OIZyv Z1/vrBuCOWTkQojrrkf23m7k/6ZoyXQhS4OHXE3S13yJaYEgeVrnJDaKRHyMQroSWacG 1tqbMO3LvWYjG3u8K7B9xegUdIs0NwcuPIr5fYQ7vxcVELxb+KK7Qus5ixEL2vOgGMZ1 WXRNyxW1hE8iZA7Rw2m89+rCFEmS34BMSzDhJRmp/DE4NfoC6C0woAa8dAA/1E1NkQFz p5wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FXSpGv6Q; 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 c10-v6si18994204pla.450.2018.09.03.19.49.17; Mon, 03 Sep 2018 19:49:33 -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=FXSpGv6Q; 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 S1727999AbeIDHJ2 (ORCPT + 99 others); Tue, 4 Sep 2018 03:09:28 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39937 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbeIDHJ1 (ORCPT ); Tue, 4 Sep 2018 03:09:27 -0400 Received: by mail-pg1-f195.google.com with SMTP id l63-v6so885730pga.7; Mon, 03 Sep 2018 19:46:31 -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=fA2ErCgkNSVCLrHl8v8rTEOByo32QmaLjON3C67ERi8=; b=FXSpGv6Q+gVKqqkcRWl2vNMAOcNEdvYrXJL3ksktI+W6kt6ISgNAG0igOutTk5HyXJ ZW575WBe+/s6WfKUy1k5kv7a6ENWwjFJoQ9fdqllgGaI1ZW6hqIZexvnZGKjyrfTOBVK YIjINe7bm7REInnq72i6mTEg2qR8TTIZXXJxqa3Qfg6WC5fv5dBKcvNTUhSDQUkEe1xo 5TKXGWS0vbp7Jy8sTD1RMiWAJ+otJSs+jBmy80tDyPO+7f/qiiXN+af1OgfhydXSP0dh FnComxuodg8phvHHndO7CBd+/+rlGF5KWvW8iYXGhnLEbZjYK3tbI7nxzb+lHQGKlXyk 8Y+Q== 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=fA2ErCgkNSVCLrHl8v8rTEOByo32QmaLjON3C67ERi8=; b=Les3L60FxT8R+IQLGnBAADQGq+n24e45CJjwcNT1CsDYzf5qzJQad0/pJAnAkWEXGa 3aEYbrB+kgW7pwivGXzA6bSNwH0fnZF2AZqUWCUEGZhKwg+hpKt8Lau0AmI3IFTp/rNd isLNetlTMWPuWWsK2pqrwruYI8HCJ/4YHBcM3AIi3T2WKi2+/wDsGlAkTpIVREGzQrSb ZIK0KMXVZiXLl73GXJvpFLhGqsAEHy08Jeb7qQ3D3zVy5rubl0/aw7lrAAQA0YDz7RHE S7wBDRmgSMxBVnsqVHyl32G7xZAPJovLI/NSIWEb/pWJ5jCS79VLjgSizW7wLfRJVE3Z aJ9A== X-Gm-Message-State: APzg51Ch1wijPxrHIETy1vg6knLgNlLPSgb6kGH6iQmItUqc+76XapeI Vuhy/GIigPbFyZ+FosG6f5g= X-Received: by 2002:a63:4f14:: with SMTP id d20-v6mr29062720pgb.121.1536029191652; Mon, 03 Sep 2018 19:46:31 -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.46.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:31 -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 20/25] staging: gdm724x: gdm_tty: Change return type to void Date: Tue, 4 Sep 2018 11:44:46 +0900 Message-Id: <1536029091-4426-21-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_standard_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/staging/gdm724x/gdm_tty.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c index 6e81369..d6348df 100644 --- a/drivers/staging/gdm724x/gdm_tty.c +++ b/drivers/staging/gdm724x/gdm_tty.c @@ -62,6 +62,7 @@ static int gdm_tty_install(struct tty_driver *driver, struct tty_struct *tty) return -ENODEV; mutex_lock(&gdm_table_lock); + gdm = gdm_table[ret][tty->index]; if (!gdm) { mutex_unlock(&gdm_table_lock); @@ -69,15 +70,9 @@ static int gdm_tty_install(struct tty_driver *driver, struct tty_struct *tty) } tty_port_get(&gdm->port); - - ret = tty_standard_install(driver, tty); - if (ret) { - tty_port_put(&gdm->port); - mutex_unlock(&gdm_table_lock); - return ret; - } - + tty_standard_install(driver, tty); tty->driver_data = gdm; + mutex_unlock(&gdm_table_lock); return 0; -- 2.7.4