pld: fix sparser warnings

Change-Id: I31c5b19cd93ac41b026f824337488c9aa9b12439
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7828
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Daniel Anselmi
2023-07-25 23:31:54 +02:00
committed by Antonio Borneo
parent 307a3ca109
commit 1233de5f90
2 changed files with 2 additions and 2 deletions

View File

@@ -319,7 +319,7 @@ static int lattice_load_command(struct pld_device *pld_device, const char *filen
return retval;
}
int lattice_get_ipdbg_hub(int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub)
static int lattice_get_ipdbg_hub(int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub)
{
if (!pld_device)
return ERROR_FAIL;