Search Linux Wireless

Possible issue with commit "baa1702290953295e421f0f433e2b1ff4815827c"

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

 



Hello,

Sorry if this is not the proper way to report this but I noticed something that has to be an error in commit "baa1702290953295e421f0f433e2b1ff4815827c"

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=baa1702290953295e421f0f433e2b1ff4815827c


in the file "halbtcoutsrc.c"

there is:

+ if ((gl_bt_coexist.board_info.pg_ant_num == 2) &&
+     (gl_bt_coexist.board_info.btdm_ant_num == 1))
+         gl_bt_coexist.board_info.btdm_ant_pos =
+                         BTC_ANTENNA_AT_MAIN_PORT;
+ else
+         gl_bt_coexist.board_info.btdm_ant_pos =
+                         BTC_ANTENNA_AT_MAIN_PORT;


The action performed under the IF condition is the same as the one under the ELSE condition, so either there is a bug here or there simply is no need for the IF/ELSE clause.

Sorry if I'm all wrong on this, I was just casually looking through code and this striked weird to me!

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



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux