[PATCH] vfree and kfree cleanup in drivers/
[deliverable/linux.git] / drivers / isdn / i4l / isdn_bsdcomp.c
index baf4bcad9bf93a825c34941ea57e9f244b1d5bff..0afe442db3b0011568fc96f5f5c2d2baae591342 100644 (file)
@@ -283,23 +283,19 @@ static void bsd_free (void *state)
                /*
                 * Release the dictionary
                 */
-               if (db->dict) {
-                       vfree (db->dict);
-                       db->dict = NULL;
-               }
+               vfree(db->dict);
+               db->dict = NULL;
 
                /*
                 * Release the string buffer
                 */
-               if (db->lens) {
-                       vfree (db->lens);
-                       db->lens = NULL;
-               }
+               vfree(db->lens);
+               db->lens = NULL;
 
                /*
                 * Finally release the structure itself.
                 */
-               kfree (db);
+               kfree(db);
        }
 }
 
This page took 0.027908 seconds and 5 git commands to generate.