This patch fixes a "may be used uninitialized" warning. Signed-off-by: Robert Schwebel <r.schwebel@xxxxxxxxxxxxxx> include/libstats.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) Index: include/libstats.h =================================================================== --- include/libstats.h.orig +++ include/libstats.h @@ -216,7 +216,6 @@ void stats_hist_print(stats_container_t int stats_container_save(char *filename, char *title, char *xlabel, char *ylabel, stats_container_t *data, char *mode) { - int ret; int i; int minx, maxx, miny, maxy; FILE *dat_fd; @@ -236,7 +235,7 @@ int stats_container_save(char *filename, /* generate the data file */ if (!(dat_fd = fopen(datfile, "w"))) { perror("Failed to open dat file"); - ret = -1; + return -1; } else { minx = maxx = data->records[0].x; miny = maxy = data->records[0].y; @@ -254,7 +253,7 @@ int stats_container_save(char *filename, /* generate the plt file */ if (!(plt_fd = fopen(pltfile, "w"))) { perror("Failed to open plt file"); - ret = -1; + return -1; } else { fprintf(plt_fd, "set terminal png\n"); fprintf(plt_fd, "set output \"%s.png\"\n", pltfile); @@ -272,6 +271,6 @@ int stats_container_save(char *filename, fclose(plt_fd); } - return ret; + return 0; } #endif /* LIBSTAT_H */ -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hannoversche Str. 2, 31134 Hildesheim, Germany Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9 - To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html