Re: [PATCH] Fix coding oddities

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

 



On Mon, Jun 25, 2018 at 10:28:50PM +0200, Jouke Witteveen wrote:
> One typo and one peculiar update loop.

Thanks, applied.

> I came accross one typo, which had survived over four years, and one odd
> loop in which a variable was updated at every iteration. If you dislike
> how I refactored the loop, feel free to kick that part of the patch out.

That loop part should certainly be in a separate patch, so I dropped it
from here to have a clean commit for fixing a real issue. The loop could
be handled separately, but I'm not really sure I'd do that with the
particular changes here (especially moving pos[0] setting to be after
the loop and having to initialize pos to buf + 2). I don't see any real
harm in the current implementation either, so I don't think I'd spend
much time in trying to optimize this.
 
-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux