- Fixes '&&' whitespace
[fw/openocd] / src / jtag / zy1000 / zy1000.c
index 5e4bda0f19ffb98b31064efad6671e9c4b52ff94..29ab3e46a50456fd9eb278f5e2740ef36e795986 100644 (file)
@@ -149,7 +149,7 @@ void zy1000_reset(int trst, int srst)
                ZY1000_POKE(ZY1000_JTAG_BASE+0x10, 0x00000002);
        }
 
-       if (trst||(srst&&(jtag_get_reset_config() & RESET_SRST_PULLS_TRST)))
+       if (trst||(srst && (jtag_get_reset_config() & RESET_SRST_PULLS_TRST)))
        {
                waitIdle();
                /* we're now in the RESET state until trst is deasserted */