This patch initializes the res variable in the scst_proc_update_size and fileio_proc_update_size to get rid of "variable might be used unintialized" compiler warnings.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@41 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2006-12-04 11:02:50 +00:00
parent 3c0e316ce6
commit 22eee9b4a8
2 changed files with 2 additions and 2 deletions

View File

@@ -2270,7 +2270,7 @@ struct fileio_proc_update_struct {
static int fileio_proc_update_size(int size, off_t offset, int length,
struct fileio_proc_update_struct *p, int is_start)
{
int res;
int res = 0;
if (size > 0) {
p->len += size;
p->pos = p->begin + p->len;

View File

@@ -737,7 +737,7 @@ struct scst_proc_update_struct {
static int scst_proc_update_size(int size, off_t offset, int length,
struct scst_proc_update_struct *p)
{
int res;
int res = 0;
if (size > 0) {
p->len += size;
p->pos = p->begin + p->len;