nfctype2: Remove not needed NULL assignment
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 10 Oct 2013 07:46:11 +0000 (09:46 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 11 Oct 2013 15:05:13 +0000 (17:05 +0200)
cookie is local pointer so there is no need to NULL it when memory
gets released.

plugins/nfctype2.c

index 1212882..92105d5 100644 (file)
@@ -122,7 +122,6 @@ static int t2_cookie_release(int err, void *data)
 
        g_free(cookie->ndef);
        g_free(cookie);
-       cookie = NULL;
 
        return err;
 }