dog/farm: clear performance tips generated by cppcheck

This patch gets rid of the below message while performing a code analysis
with cppcheck.

[dog/farm/farm.c:207] -> [dog/farm/farm.c:218]: (performance) Variable
'ret' is reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
dog/vdi: clear performance tips generated by cppcheck

This patch gets rid of the below message while performing a code
analysis with cppcheck.

[dog/vdi.c:972] -> [dog/vdi.c:974]: (performance) Variable 'ret' is
reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
http/kv: clear performance tips generated by cppcheck

This patch gets rid of the below messages while performing a code
analysis with cppcheck.

[sheep/http/kv.c:852] -> [sheep/http/kv.c:854]: (performance) Variable
'ret' is reassigned a value before the old one has been used.
[sheep/http/kv.c:919] -> [sheep/http/kv.c:923]: (performance) Variable
'ret' is reassigned a value before the old one has been used.
[sheep/http/kv.c:1242] -> [sheep/http/kv.c:1245]: (performance) Variable
'ret' is reassigned a value before the old one has been used.
[sheep/http/kv.c:1299] -> [sheep/http/kv.c:1303]: (performance) Variable
'ret' is reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
sheep/md: clear performance tips generated by cppcheck

This patch gets rid of the below message while performing a code
analysis with cppcheck.

[sheep/md.c:395] -> [sheep/md.c:398]: (performance) Variable 'ret' is
reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
sheep/migrate: clear performance tips generated by cppcheck

This patch gets rid of the below message while performing a code
analysis with cppcheck.

[sheep/migrate.c:117] -> [sheep/migrate.c:122]: (performance) Variable
'fd' is reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
sheep/oc: clear performance tips generated by cppcheck

This patch gets rid of the below message while performing a code
analysis with cppcheck.

[sheep/object_cache.c:805] -> [sheep/object_cache.c:815]: (performance)
Variable 'ret' is reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
sheep/ops: clear performance tips generated by cppcheck

This patch gets rid of the below messages while performing a code
analysis with cppcheck.

[sheep/ops.c:884] -> [sheep/ops.c:888]: (performance) Variable 'ret' is
reassigned a value before the old one has been used.
[sheep/ops.c:1149] -> [sheep/ops.c:1166]: (performance) Variable
'locked' is reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
sheep: clear performance tips generated by cppcheck

This patch gets rid of the below message while performing a code
analysis with cppcheck.

[sheep/sheep.c:197] -> [sheep/sheep.c:201]: (performance) Variable 'fd'
is reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
sheep/vdi: clear performance tips generated by cppcheck

This patch gets rid of the below message while performing a code
analysis with cppcheck.

[sheep/vdi.c:275] -> [sheep/vdi.c:278]: (performance) Variable 'ret' is
reassigned a value before the old one has been used.
[sheep/vdi.c:1239] -> [sheep/vdi.c:1249]: (performance) Variable 'ret'
is reassigned a value before the old one has been used.
[sheep/vdi.c:1376] -> [sheep/vdi.c:1382]: (performance) Variable 'ret'
is reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
sheepfs/http: clear performance tips generated by cppcheck

This patch gets rid of the below message while performing a code
analysis with cppcheck.

[sheepfs/http.c:534] -> [sheepfs/http.c:537]: (performance) Variable
'ret' is reassigned a value before the old one has been used.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>