]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/serial/io_ti.c
[PATCH] USB: kfree cleanup for drivers/usb/* - no need to check for NULL
[linux-2.6-omap-h63xx.git] / drivers / usb / serial / io_ti.c
index 6c96fdaec36e3a4de5007494073904b5116f7ff5..ebf9967f7c86f3e76998e3fb8a3b348a0eeef2c1 100644 (file)
@@ -2845,9 +2845,8 @@ static struct edge_buf *edge_buf_alloc(unsigned int size)
 
 void edge_buf_free(struct edge_buf *eb)
 {
-       if (eb != NULL) {
-               if (eb->buf_buf != NULL)
-                       kfree(eb->buf_buf);
+       if (eb) {
+               kfree(eb->buf_buf);
                kfree(eb);
        }
 }