From patchwork Mon Sep 7 15:36:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 7136531 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A47E39F1D5 for ; Mon, 7 Sep 2015 15:36:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D098E20776 for ; Mon, 7 Sep 2015 15:36:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0BC4E20680 for ; Mon, 7 Sep 2015 15:36:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753788AbbIGPgv (ORCPT ); Mon, 7 Sep 2015 11:36:51 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34676 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753773AbbIGPgs (ORCPT ); Mon, 7 Sep 2015 11:36:48 -0400 Received: by padhy16 with SMTP id hy16so97498932pad.1 for ; Mon, 07 Sep 2015 08:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=faTWf1l5KdxAK6eNvyvJXu/vG23rMw1rxkQXH0hiMF0=; b=ts52jPad7PJgiPO4UQChDMB9YF6WiRd6EuknJk3SPl+3ch8YPgFaS0UBj8rXQwWL/s kl0gcBn7MtXve50tb2m3Z8pCM4owSvHt8FpES02abIlCaO7mqBpFOO9XKPgug2+W0R6p JwaZ8z9404Bex1zGYouxNpcmXfe704uknxCywkIOW+naaWDDuUSJ4D2UqKJF7IbpY/XR cUTUfQjoxqtDcVHx0P4ncWCuYcVd3mBwYfghup/twkk02KUfHdk5lsYCpY6QWK41nhB2 G5wRt1eN8kWkg2E7GZLGwuGF4Mr+NxyOibEdXNphiVxD1pdZgJYXCttPsAqqUeXw1H8d LFtw== X-Received: by 10.68.196.202 with SMTP id io10mr46209152pbc.141.1441640208342; Mon, 07 Sep 2015 08:36:48 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id fj4sm207201pdb.23.2015.09.07.08.36.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Sep 2015 08:36:48 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, rachel.kim@atmel.com, chris.park@atmel.com, devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, Chaehyun Lim Subject: [PATCH 1/5] staging: wilc1000: linux_wlan.c: use kzalloc instead of WILC_MALLOC Date: Tue, 8 Sep 2015 00:36:35 +0900 Message-Id: <1441640199-1507-1-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.5.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch replaces WILC_MALLOC with kzalloc. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/linux_wlan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index afd6702..f7dda75 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -2269,8 +2269,7 @@ int wilc_netdev_init(void) sema_init(&close_exit_sync, 0); /*create the common structure*/ - g_linux_wlan = WILC_MALLOC(sizeof(linux_wlan_t)); - memset(g_linux_wlan, 0, sizeof(linux_wlan_t)); + g_linux_wlan = kzalloc(sizeof(linux_wlan_t), GFP_KERNEL); /*Reset interrupt count debug*/ int_rcvdU = 0;