staging: vt6655: Use named constants when checking preamble type
authorKarolina Drobnik <karolinadrobnik@gmail.com>
Thu, 21 Oct 2021 09:27:53 +0000 (10:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Oct 2021 09:06:03 +0000 (11:06 +0200)
commit9da4b50c384c9d0567cedfb2e65d39d8c6b2a674
tree3e6c25df9260aee77334aee2723e6382230df00d
parentc31237afcd6345d7a98c227e796088ed5bea0d44
staging: vt6655: Use named constants when checking preamble type

Compare `preamble_type` to a predefined constant, `PREAMBLE_SHORT`,
instead of a literal in `bb_get_frame_time` and `vnt_get_phy_field`
functions. Thanks to this change, it is clear that we check
the type of a preamble, not just compare it against an arbitrary value.
Remove a redundant comment.

Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
Link: https://lore.kernel.org/r/20211021092753.511863-1-karolinadrobnik@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/baseband.c