pld: fix new warnings from sparse
commitcc29abe9d16a19505a43c4d7c29fe7bb69ca6d9f
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 6 May 2023 14:19:55 +0000 (6 16:19 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Thu, 18 May 2023 10:11:29 +0000 (18 10:11 +0000)
tree53bd586b202288d489d9adb150bfa9d2661749ae
parent247d8df3146f2e80487962fe5103cd28f170d288
pld: fix new warnings from sparse

The new committed files add some warning from the static analyser
'sparse':
- Don't assign pointer to 0, use NULL.
- switch with no cases.

Fix them.

Change-Id: I2c02d629bd80b71c8e42553be5d9388bb9b6bcd0
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7668
Tested-by: jenkins
src/pld/lattice_bit.c
src/pld/pld.c