removing unnecessary ZeroMemory calls

instead of calling ZeroMemory(foobar) to initialize the data structure,
during declaration do struct some_struct foobar = { 0 }
This commit is contained in:
Olga Kornievskaia 2011-08-24 17:43:20 -04:00
parent 62c00bff40
commit 969783d46b
11 changed files with 25 additions and 55 deletions

View file

@ -82,7 +82,7 @@ static int get_superblock_attrs(
{
int status;
bitmap4 attr_request;
nfs41_file_info info;
nfs41_file_info info = { 0 };
attr_request.arr[0] = FATTR4_WORD0_SUPPORTED_ATTRS |
FATTR4_WORD0_LINK_SUPPORT | FATTR4_WORD0_SYMLINK_SUPPORT |
@ -93,7 +93,6 @@ static int get_superblock_attrs(
FATTR4_WORD1_TIME_DELTA;
attr_request.count = 2;
ZeroMemory(&info, sizeof(info));
info.supported_attrs = &superblock->supported_attrs;
info.time_delta = &superblock->time_delta;