X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Fpatch-image%2Fsrc%2Fpatch-dtb.c;h=a94da3fa41577c398e1d3262fe4041cf94c8c48a;hb=HEAD;hp=8d186236c14531fc9f7873984568200d61a48840;hpb=ee613097bee89eec370c2118614ac39f65ea1f21;p=lede-git%2F.git diff --git a/tools/patch-image/src/patch-dtb.c b/tools/patch-image/src/patch-dtb.c index 8d186236c1..a94da3fa41 100644 --- a/tools/patch-image/src/patch-dtb.c +++ b/tools/patch-image/src/patch-dtb.c @@ -49,10 +49,6 @@ int main(int argc, char **argv) search_space = dtb_max_size = atoi(argv[3]); } - fddtb = open(argv[1], O_RDONLY); - if (!fddtb) - goto err1; - if (stat(argv[2], &s)) { fprintf(stderr, "DTB not found\n"); goto err1;