Return-path: Received: from s3.sipsolutions.net ([5.9.151.49]:38153 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751539AbbAGWQk (ORCPT ); Wed, 7 Jan 2015 17:16:40 -0500 Message-ID: <1420668978.3407.28.camel@sipsolutions.net> (sfid-20150107_231701_511926_BFE1771A) Subject: Re: [PATCH 2/2] Fix copy-paste bug: assign from src struct not dest From: Johannes Berg To: Giel van Schijndel Cc: Andy Shevchenko , linux-kernel@vger.kernel.org, Kalle Valo , Eliad Peller , "John W. Linville" , Arik Nemtsov , "open list:TI WILINK WIRELES..." , "open list:NETWORKING DRIVERS" Date: Wed, 07 Jan 2015 23:16:18 +0100 In-Reply-To: <20150107191836.GA18978@salidar.dom.custoft.eu> References: <20150107191836.GA18978@salidar.dom.custoft.eu> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, 2015-01-07 at 20:18 +0100, Giel van Schijndel wrote: > IMO the aligned block of code has the significant advantage of taking > advantage of humans' ability to spot things that break a pattern. Which > in this case becomes *very* visible when properly aligned, because > without the alignment there is no (visual) pattern (or at least not one > very suitable for my "visual processing system", I know the same applies > to at least some others). Yeah, well, but why even invoke that "visual processing system"? If you look, for example, at the __skb_clone function it just uses a macro: #define C(x) n->x = skb->x and then C(len); C(data_len); etc. johannes