Re: [PATCH 4/4] dspbridge: Change LST_ELEM to list_head entirely

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 3, 2009 at 12:17 PM, Artem Bityutskiy<dedekind1@xxxxxxxxx> wrote:
> On Thu, 2009-09-03 at 12:06 +0300, Andy Shevchenko wrote:
>> @@ -590,7 +589,7 @@ DSP_STATUS CMM_GetInfo(struct CMM_OBJECT *hCmmMgr,
>>                               /* next node. */
>>                               pCurNode = (struct CMM_MNODE *)LST_Next(pAltr->
>>                                       pInUseListHead,
>> -                                     (struct LST_ELEM *)pCurNode);
>> +                                     (struct list_head *) pCurNode);
>
> I do not completely agree with this change. Please do not put space
> between the cast and the variable. The cast kind of belongs to the
> variable, so it is nicer to have no space there.
Partially code is written in  way w/o spaces, partially in way with
space. The style of whole driver is awful.
Just for information, in our kernel:
sh-3.2$ git grep -n 'list_head *)[^ ]' | wc
    110     519    8630
sh-3.2$ git grep -n 'list_head *) ' | wc
     43     236    3345

So, probably I will agree with you.

-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux