Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762336AbcLUXD0 (ORCPT ); Wed, 21 Dec 2016 18:03:26 -0500 Received: from forward4p.cmail.yandex.net ([77.88.31.19]:52954 "EHLO forward4p.cmail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757319AbcLUXBs (ORCPT ); Wed, 21 Dec 2016 18:01:48 -0500 Authentication-Results: mxback2g.mail.yandex.net; dkim=pass header.i=@yandex.com.tr From: Ozgur Karatas Envelope-From: mueddib@yandex.com.tr To: Paul Bolle , johannes , David Miller Cc: Thomas Gleixner , linux-wireless , netdev , linux-kernel In-Reply-To: <601101482360611@web25o.yandex.ru> References: <608881482358981@web17g.yandex.ru> <1482359625.28171.2.camel@tiscali.nl> <601101482360611@web25o.yandex.ru> Subject: Re: [PATCH 2/2] net: wireless: fix to uses struct MIME-Version: 1.0 Message-Id: <532551482361304@web26g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 22 Dec 2016 01:01:44 +0200 Content-Transfer-Encoding: 7bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 961 Lines: 33 My previous patch is invalid, I'm sorry. The last patc will be fellow because "regulatory_request" is defined as a "static struct". Signed-off-by: Ozgur Karatas --- net/wireless/reg.c | 10 +++++----- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 5dbac37..5b70970 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -490,7 +490,7 @@ static int reg_query_builtin(const char *alpha2) if (!regdom) return -ENODATA; - request = kzalloc(sizeof(struct reg_regdb_apply_request), GFP_KERNEL); + request = kzalloc(sizeof(*reg_regdb_apply_request), GFP_KERNEL); if (!request) return -ENOMEM; @@ -2661,7 +2661,7 @@ int regulatory_hint_found_beacon(struct wiphy *wiphy, if (processing) return 0; - reg_beacon = kzalloc(sizeof(struct reg_beacon), gfp); + reg_beacon = kzalloc(sizeof(*reg_beacon), gfp); if (!reg_beacon) return -ENOMEM; -- 2.1.4