Also remove redundant code. Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: David Calavera <david.calavera@gmail.com>