1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fixed compiler warnings about uninitialized use

This commit is contained in:
Steffen Vogel 2016-07-26 15:42:11 +02:00
parent 7017ececce
commit 7f4f898b70
4 changed files with 6 additions and 4 deletions

View file

@ -32,7 +32,7 @@ void cfg_destroy(config_t *cfg)
int cfg_parse(const char *filename, config_t *cfg, struct settings *set,
struct list *nodes, struct list *paths)
{
int ret;
int ret = CONFIG_FALSE;
char *filename_cpy, *include_dir;
config_init(cfg);

View file

@ -320,7 +320,7 @@ int dma_sg_read_complete(struct ip *c, char **buf, size_t *len)
int ret, bdcnt;
uint32_t recvlen, sr;
uintptr_t recvbuf;
uintptr_t recvbuf = NULL;
if (!xdma->HasSg)
return -1;

View file

@ -375,8 +375,10 @@ int vfio_pci_msi_find(struct vfio_dev *d, int nos[32])
continue;
/* Find last column of line */
while ((col = strtok(NULL, " ")))
do {
last = col;
} while ((col = strtok(NULL, " ")));
ret = sscanf(last, "vfio-msi[%u](%12[0-9:])", &idx, name);
if (ret == 2) {

View file

@ -258,7 +258,7 @@ int fpga_test_fifo(struct fpga *f)
int fpga_test_dma(struct fpga *f)
{
int ret;
int ret = -1;
struct dma_mem mem, src, dst;
list_foreach(struct ip *dma, &f->ips) { INDENT