@@ -40,7 +40,7 @@ static inline void irq_trans_init(struct device_node *dp) { }
static char * __init of_pdt_build_full_name(struct device_node *dp)
{
- static int failsafe_id = 0; /* for generating unique names on failure */
+ static int failsafe_id; /* for generating unique names on failure */
const char *name;
char path[256];
char *buf;
@@ -67,7 +67,7 @@ static struct property * __init of_pdt_build_one_prop(phandle node, char *prev,
void *special_val,
int special_len)
{
- static struct property *tmp = NULL;
+ static struct property *tmp;
struct property *p;
int err;
Static variables do not need to be initialised to 0 or NULL, because compilers will initialise all uninitialised statics to 0 or NULL. Thus, remove the unneeded initializations. Signed-off-by: Jason Wang <wangborong@cdjrlc.com> --- drivers/of/pdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)