mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 04:01:26 +00:00
From Erik Habbinga <erikhabbinga@inphase-tech.com>
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user