openocd: fix Yoda conditions with checkpatch
[fw/openocd] / src / jtag / drivers / cmsis_dap_usb_hid.c
index ff0ac78372a377b7ab1c234a6af79f8599965a5e..5bb8ee8b1c3e90476cbfb43525f3ba4754197b3a 100644 (file)
@@ -73,7 +73,7 @@ static int cmsis_dap_hid_open(struct cmsis_dap *dap, uint16_t vids[], uint16_t p
        while (cur_dev) {
                bool found = false;
 
-               if (0 == vids[0]) {
+               if (vids[0] == 0) {
                        if (!cur_dev->product_string) {
                                LOG_DEBUG("Cannot read product string of device 0x%x:0x%x",
                                          cur_dev->vendor_id, cur_dev->product_id);