Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp403866iob; Tue, 3 May 2022 00:18:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLGF/WhjeVrzYBEup32gWpStG/ap/YS+SaNVoH53QfuSGB0JulqzzOzfF4vZ+lWiA8bp3Q X-Received: by 2002:a2e:a58f:0:b0:250:5b8a:d3f9 with SMTP id m15-20020a2ea58f000000b002505b8ad3f9mr4186174ljp.332.1651562334262; Tue, 03 May 2022 00:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651562334; cv=none; d=google.com; s=arc-20160816; b=K6qmaVL6WsXROaAqIeM5ec7FIcYh9fDqEfGiuAJUb04EpJ+2yHPuGuXvpzovOF0R4W NPhlOETEvX/Dkks4qPL3xhlcp1nLvZ/XRrVR29JnjSW/jIdu1rz6GO6Bb2dsgj1qXLH0 ngYm5ocv20d8FvoyNmnZdbFGxJfvJoXjSyQjSsy9nEKsYk8AAa8IFukTGwf12WZe8Pj9 LjNr/KgdhFcBraX86GKd4C77G03sgCfEIKcckQRABigUr6mp0wLsYLMZOE8teTW0AsHN CeVyjYaX7ddO1pDxoU9+TtcBNnd9ISvIIWlAZN+G/EKBBcp3sDoASoqzw2lNYd7EKI5Y Iuvg== 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=UG/G8r1uCWHszZ/IvDqONfY3WDPVaGaRQxk6wngLySk=; b=H4aNh4GtOJXFjWfPA5z3Fg1PM2lpimE14yoDTIwprvs94VdjOLx00yFgO1thOeF18R nuMXmIVTLsfpZXTpmN8EtVDxwtEIBD9H/nQ/GS08RISqdhRtDZ8C2PQ16iKHh35tiEyN 4hdx8Zq0blWjAHL883981jOF9JL9xcXaJTwOyewS+t+mnb+g6669YEejLfwMCjNOZ9kI G/LYWdU1Iyf26Kw+pcSzWBtQPWCuA7Sm2ExfY5wS1vmUyG6SpwkEsRbB8k7fh+6p4lfk hwOz+cDgFLeEwmpTiX2Y7hHZpjRUS4HatJXhWzo0m0iGCKHlBG6OrahUVvrn/ecEy//3 N0rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=OSPynr1u; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=cHvR6udn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020ac24e07000000b00473a4c3bb56si2389312lfr.119.2022.05.03.00.18.26; Tue, 03 May 2022 00:18:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=OSPynr1u; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=cHvR6udn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229976AbiECGfe (ORCPT + 99 others); Tue, 3 May 2022 02:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbiECGfC (ORCPT ); Tue, 3 May 2022 02:35:02 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E005A381B7; Mon, 2 May 2022 23:31:29 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 9C70A21872; Tue, 3 May 2022 06:31:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1651559488; 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=UG/G8r1uCWHszZ/IvDqONfY3WDPVaGaRQxk6wngLySk=; b=OSPynr1u15u5yOyv1jfUUPpuj0OZuawxO0leMQdaIRmlY/140fy4+R6Xe1V9PbyXJK0r7m 5vU9Hsa05zdPpYtErr3MmI/zMrtHJNfxnfJyjbdD4Z8RQZ8nzBPwW8f4aaCzp7f5PZ76wV 5q62Q9adDVRi0pzMW2Tul96GgFLmF/o= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1651559488; 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=UG/G8r1uCWHszZ/IvDqONfY3WDPVaGaRQxk6wngLySk=; b=cHvR6udnaIXGXx0SVJ+SW9CRnDo9NA9KZU+WrszBIc0AR0X34kKQ31PmgO/QZexRWzkyPB 1N+iuFZzVq30CNCA== 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 6829C2C143; Tue, 3 May 2022 06:31:28 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 09/11] serial: pic32: don't zero members of kzalloc-ated structure Date: Tue, 3 May 2022 08:31:20 +0200 Message-Id: <20220503063122.20957-10-jslaby@suse.cz> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220503063122.20957-1-jslaby@suse.cz> References: <20220503063122.20957-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 pic32_sport (sport) has just been kzallocated. So there is no need to zero its member (sport->port) now. Signed-off-by: Jiri Slaby --- drivers/tty/serial/pic32_uart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/pic32_uart.c b/drivers/tty/serial/pic32_uart.c index 08e79d7f34f7..990603fe8a8d 100644 --- a/drivers/tty/serial/pic32_uart.c +++ b/drivers/tty/serial/pic32_uart.c @@ -919,7 +919,6 @@ static int pic32_uart_probe(struct platform_device *pdev) pic32_sports[uart_idx] = sport; port = &sport->port; - memset(port, 0, sizeof(*port)); port->iotype = UPIO_MEM; port->mapbase = res_mem->start; port->ops = &pic32_uart_ops; -- 2.36.0