[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100330144433.GM5069@bicker>
Date: Tue, 30 Mar 2010 17:44:33 +0300
From: Dan Carpenter <error27@...il.com>
To: Andi Kleen <ak@...ux.intel.com>
Cc: David Airlie <airlied@...ux.ie>,
Greg Kroah-Hartman <gregkh@...e.de>,
Thomas Hellstrom <thellstrom@...are.com>,
Jesse Barnes <jbarnes@...tuousgeek.org>,
dri-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [patch] drm: sysfs files error handling
On Sun, Mar 28, 2010 at 10:55:14PM +0200, Andi Kleen wrote:
> , Dan Carpenter wrote:
>>
>> In the original code we used "j" as an iterator but we used "i" as an
>> index.
>>
>> - for (j = 0; j< i; j++)
>> - device_remove_file(&connector->kdev,
>> -&connector_attrs[i]);
>
> I guess this really should be a attribute group anyways?
>
> Typically when there's such a open coded loop it means the wrong
> interfaces are being used.
My graphics card is crap and doesn't use this code at all. I'd feel
uncomfortable those changes without being able to test it.
So while, you are probably right, someone else should probably do that.
regards,
dan carpenter
> -Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists