From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932416AbcJKWCa (ORCPT ); Tue, 11 Oct 2016 18:02:30 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:35393 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754126AbcJKV7r (ORCPT ); Tue, 11 Oct 2016 17:59:47 -0400 From: Wayne Porter To: gregkh@linuxfoundation.org Cc: Wayne Porter , linux-kernel@vger.kernel.org Subject: [PATCH 35/45] staging: rts5208: rtsx.c: Alloc sizeof struct Date: Tue, 11 Oct 2016 21:56:51 +0000 Message-Id: <290f569903270323c4e8ecb38b07a7ec5534cd71.1476222675.git.wporter82@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Satisfy checkpatch message: Prefer kzalloc(sizeof(*dev->chip)...) over kzalloc(sizeof(struct rtsx_chip)...) Signed-off-by: Wayne Porter --- drivers/staging/rts5208/rtsx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index 809d37d..dafd8fd 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts5208/rtsx.c @@ -883,7 +883,7 @@ static int rtsx_probe(struct pci_dev *pci, dev = host_to_rtsx(host); memset(dev, 0, sizeof(struct rtsx_dev)); - dev->chip = kzalloc(sizeof(struct rtsx_chip), GFP_KERNEL); + dev->chip = kzalloc(sizeof(dev->chip), GFP_KERNEL); if (!dev->chip) { err = -ENOMEM; goto errout; -- 2.1.4