]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/serial/cypress_m8.c
[PATCH] USB: kfree cleanup for drivers/usb/* - no need to check for NULL
[linux-2.6-omap-h63xx.git] / drivers / usb / serial / cypress_m8.c
index db8f472d9e3f279ef72ab8dba68296cf8a841b07..d165f42d560d6282751c6f81075eced95994341c 100644 (file)
@@ -1340,9 +1340,8 @@ static struct cypress_buf *cypress_buf_alloc(unsigned int size)
 
 static void cypress_buf_free(struct cypress_buf *cb)
 {
-       if (cb != NULL) {
-               if (cb->buf_buf != NULL)
-                       kfree(cb->buf_buf);
+       if (cb) {
+               kfree(cb->buf_buf);
                kfree(cb);
        }
 }