Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp940489pxb; Wed, 3 Mar 2021 21:52:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUKXj0VBo97rcD1B0sZ5chPB6ghb0lqNIsAMoLLYPf2DMKdvTUSt8/QJtllc7TqRrZO6UN X-Received: by 2002:a17:906:5453:: with SMTP id d19mr2404335ejp.150.1614837178187; Wed, 03 Mar 2021 21:52:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614837178; cv=none; d=google.com; s=arc-20160816; b=rPFTTyy/6aQLlWcpCAEg7LXLMb44x91VPaIfeH6dM/ScYvYDwDuRX3kEJMR7MsjItb YEMTAjnRxB86D7GAlakqFX8t1Jafu2jQSVojT/6jR3yE3y4cLmzkr7RxkY+NAQSaKi9m SVTWSrcGEbsQoyyhwVfk1/TdPT1+yoXeF7oxj6fvYQaXZYzSaThkcU2ZAMXeGNN7Hbqe ws5BOWVO7sRVw46BUSNkCekr6ZXDbOcjqHA7kijAqU1E/ikkF7PozQZvZUfvWbCeIjEs w45TZ/guuX5haq+C7Ouook/RbEa/tYtavx9tie269Wh00wK7DveLpRmbvuRwx9pQvZ5F kqzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IwfZD8q+6BXSBhmlGp6F5vuWYBAGeCYhxHTZQnXYgRM=; b=YazCVPlYhaG4kvN+EbKgAQWHcA81++aliL6+GvaPExZA8tSFjMa3PcHaBCYDlUCCIw 3hY61CDZtjSVOExW97v5uUjT/r0JEJqXbDbCY3dL/Mo2Ie8oLFnQGPDhTjk2GPZd4pnA MrzIIJ9skT+CLDze2dv8cdYgVdCRTDlyBQN/IIJz7uJmKgLPkdUA2ngDQnpS5SkrhuWm s/WhVxlPub3tQpj23FAoSJOgHL4TJjRuO6rnMvO/Q4QTs6Vdopl9njSId1ntAX+FoW2B DQ9Ht7t+XUGBdRmZaqjhiOqznbpqCbvmyYxQYoyWSbDloCNLbbo8e0aQgBSqy3ESrLX4 o6TQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r14si16027843edb.408.2021.03.03.21.52.34; Wed, 03 Mar 2021 21:52:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349378AbhCBHPt (ORCPT + 99 others); Tue, 2 Mar 2021 02:15:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:39638 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835865AbhCBGX7 (ORCPT ); Tue, 2 Mar 2021 01:23:59 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 114EDAFDC; Tue, 2 Mar 2021 06:22:18 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org Subject: [PATCH 15/44] net: nfc: nci: remove memset of nci_uart_drivers Date: Tue, 2 Mar 2021 07:21:45 +0100 Message-Id: <20210302062214.29627-15-jslaby@suse.cz> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210302062214.29627-1-jslaby@suse.cz> References: <20210302062214.29627-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org nci_uart_drivers is a global definition, so there is no need to initialize its memory to zero during module load. Signed-off-by: Jiri Slaby Cc: "David S. Miller" Cc: Jakub Kicinski Cc: netdev@vger.kernel.org --- net/nfc/nci/uart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c index 16d009c9b6a0..c9987d1cccdf 100644 --- a/net/nfc/nci/uart.c +++ b/net/nfc/nci/uart.c @@ -468,7 +468,6 @@ static struct tty_ldisc_ops nci_uart_ldisc = { static int __init nci_uart_init(void) { - memset(nci_uart_drivers, 0, sizeof(nci_uart_drivers)); return tty_register_ldisc(N_NCI, &nci_uart_ldisc); } -- 2.30.1