X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fw1%2Fw1_ds2433.c;h=1e3d98aac12dbc788b458a6adbb8e2bf70139889;hb=3df3cc6d18b6dcd38c33c198fb8adf1f1fa5f4a7;hp=279e0e0363d6afb7e7326da42381d6c36c5e37f4;hpb=9401c705f2a6a7e5df102f6443dba395c3c5e5a8;p=linux-2.6-omap-h63xx.git diff --git a/drivers/w1/w1_ds2433.c b/drivers/w1/w1_ds2433.c index 279e0e0363d..1e3d98aac12 100644 --- a/drivers/w1/w1_ds2433.c +++ b/drivers/w1/w1_ds2433.c @@ -299,10 +299,8 @@ static int w1_f23_add_slave(struct w1_slave *sl) static void w1_f23_remove_slave(struct w1_slave *sl) { #ifdef CONFIG_W1_F23_CRC - if (sl->family_data) { - kfree(sl->family_data); - sl->family_data = NULL; - } + kfree(sl->family_data); + sl->family_data = NULL; #endif /* CONFIG_W1_F23_CRC */ sysfs_remove_bin_file(&sl->dev.kobj, &w1_f23_bin_attr); }