Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp776390pxb; Fri, 22 Apr 2022 10:55:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVA7v3/28oDWm5Ghi9sBUakKX8wtrDP/UtjO/tURW6xd5p7DZxEAKOCYT7Lqg3r7w/Lp/1 X-Received: by 2002:a17:902:be18:b0:153:2444:9c1a with SMTP id r24-20020a170902be1800b0015324449c1amr5861094pls.152.1650650126038; Fri, 22 Apr 2022 10:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650650126; cv=none; d=google.com; s=arc-20160816; b=JWSnuC8piMsOovmPScEPmTTzzi17k8gs6RfajxRneCb+tj9f9L+1xUUHUkU3nav6Bg xqyb54H+OrQxD6mVcgfz9AN0Yg33F/5TcXIjjFEe/z1qHB8xuPVoObcOvqHMl6NVcK84 nBG7ZMYT8WYxr9PeF0WzM7IH1jpHaodQzHpjfde/p6ej0yupxdt68gMYa6hdJ9qwMIOO 6LsfRoTLe17nXRa6HMKjPpupjS7qDZEVWjXZ5pJdzUfQucDR3Sf3xUS2OYMaK8qQisDa F3/qOBbQQHh3a7qna/SGeQT0HkJ/TK8iE0yAXn+/rZkGOlfL10hr6UZH7Ftm3lO3cvZY rmLQ== 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 :dkim-signature:dkim-signature; bh=NF+UmkqumeY0pckDNhK2uWzgueOaF+BJbbY4k3pIt1k=; b=tMyRgLb7VYotVEh5hjGlbpc6G8CL5DuHBl7TpPyKHW4WljcqRm2l1NO+veOlNOmNa8 a+NTGFWrzyJ32XLdNV2q9WefID/oFukDoPStla6w3+o/ugzRBOyiJf0eJ08OkA9uWpzt jY8zkkJpTRNKv/AEA8/yhmMeSgnYm8KpdLcmOI9D+IC3HUSKK8WdwFsW907KaapQIvPd g2ziVDsAvLr17k/X9Byhyfc1aJ6z+geTjiDRLvSCnCKjFIR1qq7RzjS+hdzmK+Ij7l1Z dCxyMvPjB66HIBT1GML2fBW6+lED7/AdaLmGpOFjz6A0lguqJVMPUkNmEKZE3ciIdHFz V02Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=jykvhSaX; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c13-20020a63724d000000b00382a7c2cad7si9253410pgn.206.2022.04.22.10.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:55:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=jykvhSaX; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D97DF8C7F6; Fri, 22 Apr 2022 10:38:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388292AbiDUKUY (ORCPT + 99 others); Thu, 21 Apr 2022 06:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388124AbiDUKUD (ORCPT ); Thu, 21 Apr 2022 06:20:03 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2CC622B12; Thu, 21 Apr 2022 03:17:11 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 4BB201F755; Thu, 21 Apr 2022 10:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1650536230; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NF+UmkqumeY0pckDNhK2uWzgueOaF+BJbbY4k3pIt1k=; b=jykvhSaXeT7d/16BWZwwf8Hy93G+2JZ20H3coVDtYZ5mXH1xNrgle4PBNWzr2wM6GDBxx3 reOsbbTbWPhr9SZKtxTYFUCO+v3RvyqZg9FpM1TlxIbqNxQIm58ucZpScJGx5vzWR1RGJL AWZTgpWaG6FMTRBp7v88tDKih/+tO4c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1650536230; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NF+UmkqumeY0pckDNhK2uWzgueOaF+BJbbY4k3pIt1k=; b=r8KEOduRgvrxhQRRDK32mMYaxb3BWijDb/FVb3KuYn676AstyrmI4celzE5YZBve/PUgR6 y9ECwomqls6s7ZBA== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 1A47A2C142; Thu, 21 Apr 2022 10:17:10 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 4/7] serial: zs: use NULL as a pointer, not 0 Date: Thu, 21 Apr 2022 12:17:05 +0200 Message-Id: <20220421101708.5640-5-jslaby@suse.cz> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220421101708.5640-1-jslaby@suse.cz> References: <20220421101708.5640-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct uart_port::membase is declared as a pointer. So it should be initialized by NULL, not zero constant. Signed-off-by: Jiri Slaby --- drivers/tty/serial/zs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/zs.c b/drivers/tty/serial/zs.c index 70969bf9d82c..5bc58591665a 100644 --- a/drivers/tty/serial/zs.c +++ b/drivers/tty/serial/zs.c @@ -981,7 +981,7 @@ static const char *zs_type(struct uart_port *uport) static void zs_release_port(struct uart_port *uport) { iounmap(uport->membase); - uport->membase = 0; + uport->membase = NULL; release_mem_region(uport->mapbase, ZS_CHAN_IO_SIZE); } -- 2.36.0