Bluetooth: Move scan_enable check to trigger_scan()
Bluetooth: Move scan_enable check to trigger_scan()

bt_hci_start_scanning is called from API's bt_start_scanning to enable
active scanning and from trigger_scan to enable passive/active scan.

bt_start_scanning have already this check, it stops passive scanning
if enabled and then starts active scan.

So "if (dev.scan_enable)" check can be moved to trigger_scan to avoid
unnecessary checks.

Change-Id: I5eaa4bb5c611418b8519b0dda680f59a3a9332fc
Signed-off-by: Mariusz Skamra <c73850bd0bf85e95dce44c2ce1418ca55c1b6c5d@tieto.com>

bboozzoo/zephyr,galak/zephyr,tidyjiang8/zephyr-doc,kraj/zephyr,32bitmicro/zephyr,nashif/zephyr,zephyriot/zephyr,32bitmicro/zephyr,aceofall/zephyr-iotos,galak/zephyr,ldts/zephyr,fractalclone/zephyr-riscv,ldts/zephyr,32bitmicro/zephyr,fbsder/zephyr,punitvara/zephyr,runchip/zephyr-cc3220,punitvara/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,nashif/zephyr,fractalclone/zephyr-riscv,bigdinotech/zephyr,jamesonwilliams/zephyr-kernel,jamesonwilliams/zephyr-kernel,runchip/zephyr-cc3220,nashif/zephyr,holtmann/zephyr,fractalclone/zephyr-riscv,explora26/zephyr,sharronliu/zephyr,zephyriot/zephyr,finikorg/zephyr,mirzak/zephyr-os,aceofall/zephyr-iotos,bboozzoo/zephyr,fbsder/zephyr,GiulianoFranchetto/zephyr,runchip/zephyr-cc3200,ldts/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,holtmann/zephyr,runchip/zephyr-cc3200,galak/zephyr,mbolivar/zephyr,fractalclone/zephyr-riscv,GiulianoFranchetto/zephyr,tidyjiang8/zephyr-doc,bigdinotech/zephyr,galak/zephyr,jamesonwilliams/zephyr-kernel,32bitmicro/zephyr,aceofall/zephyr-iotos,coldnew/zephyr-project-fork,runchip/zephyr-cc3220,holtmann/zephyr,sharronliu/zephyr,Vudentz/zephyr,mirzak/zephyr-os,jamesonwilliams/zephyr-kernel,bigdinotech/zephyr,aceofall/zephyr-iotos,finikorg/zephyr,jamesonwilliams/zephyr-kernel,pklazy/zephyr,Vudentz/zephyr,fractalclone/zephyr-riscv,punitvara/zephyr,coldnew/zephyr-project-fork,runchip/zephyr-cc3220,finikorg/zephyr,rsalveti/zephyr,erwango/zephyr,mbolivar/zephyr,sharronliu/zephyr,runchip/zephyr-cc3200,tidyjiang8/zephyr-doc,erwango/zephyr,fbsder/zephyr,mbolivar/zephyr,rsalveti/zephyr,rsalveti/zephyr,mbolivar/zephyr,nashif/zephyr,Vudentz/zephyr,coldnew/zephyr-project-fork,zephyriot/zephyr,coldnew/zephyr-project-fork,pklazy/zephyr,sharronliu/zephyr,Vudentz/zephyr,runchip/zephyr-cc3200,explora26/zephyr,explora26/zephyr,punitvara/zephyr,zephyriot/zephyr,mbolivar/zephyr,bigdinotech/zephyr,fbsder/zephyr,zephyriot/zephyr,galak/zephyr,sharronliu/zephyr,runchip/zephyr-cc3220,rsalveti/zephyr,erwango/zephyr,pklazy/zephyr,bigdinotech/zephyr,bboozzoo/zephyr,mirzak/zephyr-os,bboozzoo/zephyr,fbsder/zephyr,holtmann/zephyr,Vudentz/zephyr,32bitmicro/zephyr,erwango/zephyr,Vudentz/zephyr,kraj/zephyr,erwango/zephyr,zephyrproject-rtos/zephyr,tidyjiang8/zephyr-doc,kraj/zephyr,mirzak/zephyr-os,pklazy/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,holtmann/zephyr,tidyjiang8/zephyr-doc,rsalveti/zephyr,zephyrproject-rtos/zephyr,coldnew/zephyr-project-fork,punitvara/zephyr,bboozzoo/zephyr,pklazy/zephyr,explora26/zephyr,ldts/zephyr,finikorg/zephyr,runchip/zephyr-cc3200,mirzak/zephyr-os,zephyrproject-rtos/zephyr,explora26/zephyr,ldts/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,aceofall/zephyr-iotos