Skip to contentSkip to conversation

Possible issue with commit "baa1702290953295e421f0f433e2b1ff4815827c"

DISCUSSION funkybomber 1 participant 1 message Jun 28, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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!