Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753274AbcJCQQS (ORCPT ); Mon, 3 Oct 2016 12:16:18 -0400 Received: from smtprelay0222.hostedemail.com ([216.40.44.222]:59390 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751244AbcJCQQK (ORCPT ); Mon, 3 Oct 2016 12:16:10 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:966:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1568:1593:1594:1711:1714:1730:1747:1777:1792:2196:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3870:4321:4385:5007:8957:10004:10400:10848:11026:11232:11658:11914:12043:12438:12740:13069:13311:13357:13439:13894:14181:14659:14721:21080:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: birds91_358eb2fbbe21f X-Filterd-Recvd-Size: 1575 Message-ID: <1475511366.24781.1.camel@perches.com> Subject: Re: [PATCH 14/15] staging: wlang-ng: fix line style warnings in prism2sta.c From: Joe Perches To: Sergio Paracuellos , gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Mon, 03 Oct 2016 09:16:06 -0700 In-Reply-To: <1475510655-12729-15-git-send-email-sergio.paracuellos@gmail.com> References: <1475510655-12729-1-git-send-email-sergio.paracuellos@gmail.com> <1475510655-12729-15-git-send-email-sergio.paracuellos@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.0-2ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 641 Lines: 17 On Mon, 2016-10-03 at 18:04 +0200, Sergio Paracuellos wrote: > This patch fix the following checkpatch.pl warnings in prism2sta.c: > WARNING: line over 80 characters [] > diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c [] > @@ -1099,7 +1101,8 @@ static void prism2sta_inf_hostscanresults(struct wlandevice *wlandev, > ? > ? kfree(hw->scanresults); > ? > - hw->scanresults = kmemdup(inf, sizeof(struct hfa384x_InfFrame), GFP_ATOMIC); > + hw->scanresults = kmemdup(inf, > + sizeof(struct hfa384x_InfFrame), GFP_ATOMIC); Perhaps better as hw->scanresults = kmemdup(inf, sizeof(*inf), GFP_ATOMIC);