Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755826Ab2HTVvh (ORCPT ); Mon, 20 Aug 2012 17:51:37 -0400 Received: from mail131.messagelabs.com ([216.82.242.99]:14965 "EHLO mail131.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755632Ab2HTVve convert rfc822-to-8bit (ORCPT ); Mon, 20 Aug 2012 17:51:34 -0400 X-Env-Sender: hartleys@visionengravers.com X-Msg-Ref: server-13.tower-131.messagelabs.com!1345499457!13791189!30 X-Originating-IP: [216.166.12.180] X-StarScan-Received: X-StarScan-Version: 6.6.1.2; banners=-,-,- X-VirusChecked: Checked From: H Hartley Sweeten To: Dan Carpenter CC: Linux Kernel , "devel@driverdev.osuosl.org" , "gregkh@linuxfoundation.org" , "abbotti@mev.co.uk" Date: Mon, 20 Aug 2012 16:51:23 -0500 Subject: RE: [PATCH 09/20] staging: comedi: adv_pci1723: fix initial dio subdevice state and io_bits Thread-Topic: [PATCH 09/20] staging: comedi: adv_pci1723: fix initial dio subdevice state and io_bits Thread-Index: Ac1/Ha2Fdu9JQb+7SKiZ02GflO7ELgAABPFw Message-ID: References: <201208171817.38918.hartleys@visionengravers.com> <20120820214916.GA11795@mwanda> In-Reply-To: <20120820214916.GA11795@mwanda> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 26 On Monday, August 20, 2012 2:49 PM, Dan Carpenter wrote: > On Fri, Aug 17, 2012 at 06:17:38PM -0700, H Hartley Sweeten wrote: >> + if (this_board->n_diochan) { >> + s = dev->subdevices + subdev; > > This pointer math sucks still... I feel like the unreadable code is > part of what caused this bug. > > We don't have to change these all at once. If we fix only one line, > then at least one line will be readable and that is one more than > before so *improvement*. Hello Dan, I'll work of changing the pointer math to array access. I'll try to post a big chunk of them today. Regards, Hartley -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/