소스 검색

lib: utils: remove unused variable in fdt_reset_init

The value of variable current_driver is unused. Remove the variable.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Heinrich Schuchardt 2 년 전
부모
커밋
ce03c88ee1
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      lib/utils/reset/fdt_reset.c

+ 0 - 3
lib/utils/reset/fdt_reset.c

@@ -24,8 +24,6 @@ static struct fdt_reset *reset_drivers[] = {
 	&fdt_reset_thead,
 };
 
-static struct fdt_reset *current_driver = NULL;
-
 int fdt_reset_init(void)
 {
 	int pos, noff, rc;
@@ -47,7 +45,6 @@ int fdt_reset_init(void)
 			if (rc)
 				return rc;
 		}
-		current_driver = drv;
 		break;
 	}