From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753024AbcADUOR (ORCPT ); Mon, 4 Jan 2016 15:14:17 -0500 Received: from mail-qg0-f66.google.com ([209.85.192.66]:35007 "EHLO mail-qg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752325AbcADUMh (ORCPT ); Mon, 4 Jan 2016 15:12:37 -0500 From: "Geyslan G. Bem" Cc: "Geyslan G. Bem" , linux-kernel@vger.kernel.org, Alan Stern , Greg Kroah-Hartman , linux-usb@vger.kernel.org Subject: [PATCH 16/17] usb: host: ehci-dbg: prefer kmalloc_array over kmalloc times size Date: Mon, 4 Jan 2016 17:10:01 -0300 Message-Id: <7e4bc7971b908dde516c61eaed227828aa693b9a.1451937845.git.geyslan@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: References: In-Reply-To: References: To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes a coding style issue reported by checkpatch related to kmalloc_array usage. On same line the sizeof operand was enclosed by parenthesis. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 7f8ad18..2268756 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c @@ -678,7 +678,7 @@ static ssize_t fill_periodic_buffer(struct debug_buffer *buf) unsigned i; __hc32 tag; - seen = kmalloc(DBG_SCHED_LIMIT * sizeof *seen, GFP_ATOMIC); + seen = kmalloc_array(DBG_SCHED_LIMIT, sizeof(*seen), GFP_ATOMIC); if (!seen) return 0; seen_count = 0; -- 2.6.4