Re: hci_usb: remove macro code obfuscation

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

 



Pavel Machek wrote:
On Wed 2008-04-16 13:51:37, Vitaliy Ivanov wrote:
On Wed, Apr 16, 2008 at 1:42 PM, Pavel Machek <pavel@xxxxxx> wrote:
 I had trouble figuring out what the code does. atomic_inc/dec
 management is actually pretty simple, but it is needlessly obfuscated
 with macros. Fix that.

 Signed-off-by: Pavel Machek <pavel@xxxxxxx>

 I had trouble figuring out what the code does. atomic_inc/dec
 management is actually pretty simple, but it is needlessly obfuscated
 with macros. Fix that.

 Signed-off-by: Pavel Machek <pavel@xxxxxxx>

Got it from the first time;)

Do you think that now code looks better? As for me it's not...

Yes. Hiding & operator deep inside macro is evil for one thing. Plus
it is no longer clear what the code does with the macros in there.

In general I would agree in this case it seems to actually make code clearer (I prefer original macros that is).
Anyway, I do not mind the change.

btw Marcel told me that all this queuing stuff does not actually make sense anymore. USB core did not support this before and HCI driver performance sucked without it. Marcel is telling me that things have changed.
So. Pavel, while you're at it can you maybe whack that stuff out completely ?
I mean all this custom _urb stuff that I did was eventually supposed to move into usb core. Then I stopped working on Bluetooth and it never happened. It'd be nice to clean that up since it seems that most of the latest bug reports are related to this urb business.

Thanx
Max



--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux