]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/usb/serial/pl2303.c
[PATCH] USB: kfree cleanup for drivers/usb/* - no need to check for NULL
[linux-2.6.git] / drivers / usb / serial / pl2303.c
index 8e9b007bf44d2a4b3e94c41a3f0f10fd7b28f1d1..7eab5d4cf3a8c674a84ebafd73c8e4aaa4e2da27 100644 (file)
@@ -1044,9 +1044,8 @@ static struct pl2303_buf *pl2303_buf_alloc(unsigned int size)
 
 static void pl2303_buf_free(struct pl2303_buf *pb)
 {
-       if (pb != NULL) {
-               if (pb->buf_buf != NULL)
-                       kfree(pb->buf_buf);
+       if (pb) {
+               kfree(pb->buf_buf);
                kfree(pb);
        }
 }