X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fppc%2Fsyslib%2Fprom.c;h=1b9aa0d6a924f5259446c9bbf9a09ac58c0cbfe4;hb=b2325fe1b7e5654fac9e9419423aa2c58a3dbd83;hp=278da6ee62ea22f2c3bfa330562460d9c9e9e107;hpb=4542437679de448de0f75bc901dab380d6a5bc5b;p=linux-2.6 diff --git a/arch/ppc/syslib/prom.c b/arch/ppc/syslib/prom.c index 278da6ee62..1b9aa0d6a9 100644 --- a/arch/ppc/syslib/prom.c +++ b/arch/ppc/syslib/prom.c @@ -1335,10 +1335,8 @@ release_OF_resource(struct device_node* node, int index) if (!res) return -ENODEV; - if (res->name) { - kfree(res->name); - res->name = NULL; - } + kfree(res->name); + res->name = NULL; release_resource(res); kfree(res);