Clean unused variables and fix typo
Clean unused variables and fix typo

- Clean some unused variables
- format code.
- fix minor typo

Signed-off-by: Zhang Wei <14976e959b2860fb06a3c1edbdb1945a4e11b8b5@huawei.com>

flavio/docker,djs55/docker,paralin/docker,jimjag/docker,gnailuy/docker,paralin/docker,djs55/docker,moby/moby,nalind/docker,flavio/docker,yosifkit/docker,djs55/docker,moby/moby,moby/moby,moul/docker,gnailuy/docker,jameszhan/docker,nalind/docker,konstruktoid/docker-upstream,Mokolea/docker,mahak/docker,jimjag/docker,cpuguy83/docker,mahak/docker,gnailuy/docker,Ramzec/docker,jimjag/docker,thaJeztah/docker,yosifkit/docker,moul/docker,mahak/docker,flavio/docker,nawawi/docker,Mokolea/docker,flavio/docker,bearstech/moby,AkihiroSuda/docker,nalind/docker,AkihiroSuda/docker,nawawi/docker,jthelin/docker,moul/docker,docker/docker,nawawi/docker,jameszhan/docker,paralin/docker,nawawi/docker,Ramzec/docker,AkihiroSuda/docker,bearstech/moby,konstruktoid/docker-upstream,mahak/docker,Mokolea/docker,trebonian/docker,trebonian/docker,moby/moby,thaJeztah/docker,vdemeester/docker,trebonian/docker,konstruktoid/docker-upstream,AkihiroSuda/docker,docker/docker,thaJeztah/docker,bearstech/moby,jameszhan/docker,jimjag/docker,vdemeester/docker,konstruktoid/docker-upstream,cpuguy83/docker,cpuguy83/docker,gnailuy/docker,thaJeztah/docker,yosifkit/docker,Ramzec/docker,cpuguy83/docker,moul/docker,vdemeester/docker,Ramzec/docker,Mokolea/docker,bearstech/moby,jthelin/docker,paralin/docker,docker/docker,trebonian/docker,yosifkit/docker,nalind/docker