]> Pileus Git - ~andy/linux/blobdiff - drivers/mfd/wm8350-i2c.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[~andy/linux] / drivers / mfd / wm8350-i2c.c
index aa3ba0974ee576dfe3cd2ff5dce64e5ca955af95..7795af4b1fe15f7ee4690bd1a16eb17188ac492f 100644 (file)
@@ -64,10 +64,8 @@ static int wm8350_i2c_probe(struct i2c_client *i2c,
        int ret = 0;
 
        wm8350 = kzalloc(sizeof(struct wm8350), GFP_KERNEL);
-       if (wm8350 == NULL) {
-               kfree(i2c);
+       if (wm8350 == NULL)
                return -ENOMEM;
-       }
 
        i2c_set_clientdata(i2c, wm8350);
        wm8350->dev = &i2c->dev;