mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
staging: vt6655: Delete bogus check for init_count in AL2230
Remove an unnecessary check in `rf_write_wake_prog_syn` in `RF_AL2230S` switch case. This `if` conditional will never be true as `init_count` is equal to 17 and can't be bigger than `MISCFIFO_SYNDATASIZE - 0`, which is equal to 21. Suggested-by: Mike Rapoport <mike.rapoport@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com> Link: https://lore.kernel.org/r/29c758ba58b10bc1da7e864b3a4f377147fc4428.1636729147.git.karolinadrobnik@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6a141baa80
commit
8026ee384a
@@ -697,8 +697,6 @@ bool rf_write_wake_prog_syn(struct vnt_private *priv, unsigned char rf_type,
|
||||
/* Init Reg + Channel Reg (2) */
|
||||
init_count = CB_AL2230_INIT_SEQ + 2;
|
||||
sleep_count = 0;
|
||||
if (init_count > (MISCFIFO_SYNDATASIZE - sleep_count))
|
||||
return false;
|
||||
|
||||
for (i = 0; i < CB_AL2230_INIT_SEQ; i++)
|
||||
MACvSetMISCFifo(priv, idx++, al2230_init_table[i]);
|
||||
|
||||
Reference in New Issue
Block a user