remove duplicated value in scanGenericCommand

In scanGenericCommand, There are two buf values to just convert int to string.

and rv and len also are just used for same purpose.

so, We don't need to use them seperately.