staging: pi433: Fix rf69_set_tx_cfg() logic
authorSidong Yang <realwakka@gmail.com>
Thu, 28 Mar 2019 09:49:14 +0000 (09:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Mar 2019 16:10:18 +0000 (17:10 +0100)
commit81a6e1cc312ea43b4a23e6f371dda1bd233ea750
tree7d347a8839a11642895646320586bbb5cab20c08
parenta4f93fc7183f2799c8689a402adc5f355b926e02
staging: pi433: Fix rf69_set_tx_cfg() logic

Moved code to configure sync to where check enable_sync option before.
There is no need to check enable_sync twice. Configuring sync should be
executed immediately after enabling sync.

Signed-off-by: Sidong Yang <realwakka@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c