Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2285447imc; Tue, 12 Mar 2019 10:35:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbvcqP904zCeyo4BqHdvs10FWRFNJrv/02bcDR4dcKjQQsZ5f3VnCur3/BEN/ebwcz1DXB X-Received: by 2002:aa7:8508:: with SMTP id v8mr39489786pfn.14.1552412121996; Tue, 12 Mar 2019 10:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552412121; cv=none; d=google.com; s=arc-20160816; b=AihfZ9kIkm6M9EF/3ibrn7KxRxdMCY5OIUA02nsaW2hDMl7Sy9TGlY5YN/OcQaIGeC 9niMRf1aCcfH7ChpA/JOhBg0lR2JgWHt9+yoddnQlLOT6hYRNqaMUvPd654JYBnITLiK +tl+fsdkKwtPqx1fbYTozaJ+8Oc8ZISJOqIA4wYM8LcvX8aKasRMiM8qtNykGBU3n9RB Rw0X/RrH9iQoHO6aFEfVFTIu8bu3NaBC2/NdhuNQqEKiLFo/EjDG/ZamlSjiKiYlPPu9 Un6NN2YeBceq0rGRwhfkVA7oKhbjcj2XLWL0r5yfHhjFqi3TEjz7zV1C5Gc8yqphatHa OH5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=etcNNtTzHJ9C5TLik2UUWBM9lxWizQ3uJC9YeUHDamQ=; b=Io34lJz+0/bTKSD8erhFV/EqQ3rwEANiv+RB2CDCLmavd1yBuQTkmhdA4OPlse2rMS fzFT4K4N/a/6iwAJeh4eqwGQUqnx0b4PGQtxfswuxriwVLyolZ6v+M4WTtY5IkcpAHDK ZqRbQd0gCk8+XIUS0WNdNNAQ0KrLQ2guPLJrB4ZWyw7WB/yVfD+tDpnKr3Xdq6UUaP1w dI0xFyHkelSfe94dP/2nQ0c5KRvqZC4KD9Iwf9h/5djkGdZdNvqymWWkDYym5Yct2l/e dJi4KAXMAHTr3rOC++vCCimb+96cW/7WJgBwtiDnngkctna51JGbORn7R8DJjCRrn3gp 9HCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=aiQGimhN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si7982546pgj.217.2019.03.12.10.35.06; Tue, 12 Mar 2019 10:35:21 -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=@rasmusvillemoes.dk header.s=google header.b=aiQGimhN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729798AbfCLReF (ORCPT + 99 others); Tue, 12 Mar 2019 13:34:05 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:38796 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729756AbfCLRd5 (ORCPT ); Tue, 12 Mar 2019 13:33:57 -0400 Received: by mail-lj1-f193.google.com with SMTP id x13so3076424ljj.5 for ; Tue, 12 Mar 2019 10:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=etcNNtTzHJ9C5TLik2UUWBM9lxWizQ3uJC9YeUHDamQ=; b=aiQGimhN5qtnkWLgB/Bvepsutu7mowEz1yO3avlsbHoT85psJSuc7c9Wm8HSDw7Jyd p7sEYeS+J3Qm2CAmZ4qtz7jeCLqeHngOLUASWGpRFZTWUpi+rivjSMMnBUhM+qJqCglq 4Xe3AAXtAB6/U2C7EvN5EUTRG1arhDldnEjBg= 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:mime-version:content-transfer-encoding; bh=etcNNtTzHJ9C5TLik2UUWBM9lxWizQ3uJC9YeUHDamQ=; b=VBtc1+gsi7drpzf0BSw9GMA7BljZND9h7HjeEJpx6F6jhS8VHO4Z0l3dTqCQ6VI+6B 8s34KnSNtl+EPVJbXihpinWwU8WTt9jHRgbGA6iQQrluPQ3LmE34fF4TWoTRqWpu9Rxh LWX0XnZ63TgFPEthq3NcNfTWWKwoEIS+tZEgwrY+e8HPegkzBjxoKwOaltx9Q70elMPF 8dUPFNzFZaspakD6GwAL5x+4GoeoITMOt7+1wUbjQi6hwutYNp6GaQqHclSsrCEAiqcu GW5zKmU8OafJp3lU7f6AR1jtWBW2LriY43eXRjwDTzM30LC7xogoWFp15tHJjqXhXX1i 25eg== X-Gm-Message-State: APjAAAW9/q32RyjbsKLHn72OQJ/C8FiJyBfFZMTxFCL3rZC/RZDLJYnl UJjqcGe6OStQLFujm1AWkXsJhw== X-Received: by 2002:a2e:425b:: with SMTP id p88mr19619041lja.78.1552412036520; Tue, 12 Mar 2019 10:33:56 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id j5sm1473609ljg.47.2019.03.12.10.33.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Mar 2019 10:33:56 -0700 (PDT) From: Rasmus Villemoes To: Marc Zyngier , Thomas Gleixner , Jason Cooper Cc: Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: [PATCH 3/4] irqchip/gic-v3-its: drop redundant initialization in mk_lpi_range Date: Tue, 12 Mar 2019 18:33:48 +0100 Message-Id: <20190312173350.4025-4-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312173350.4025-1-linux@rasmusvillemoes.dk> References: <20190312173350.4025-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no reason to ask kmalloc() to zero the allocation, since all the fields get initialized immediately afterwards. Except that there's also not any reason to initialize the ->entry member, since the element gets added to the lpi_range_list immediately. Signed-off-by: Rasmus Villemoes --- drivers/irqchip/irq-gic-v3-its.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 5c8232cff290..2ebc28a53d96 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -1465,9 +1465,8 @@ static struct lpi_range *mk_lpi_range(u32 base, u32 span) { struct lpi_range *range; - range = kzalloc(sizeof(*range), GFP_KERNEL); + range = kmalloc(sizeof(*range), GFP_KERNEL); if (range) { - INIT_LIST_HEAD(&range->entry); range->base_id = base; range->span = span; } -- 2.20.1