diff options
Diffstat (limited to 'drivers/usb/serial/io_ti.c')
-rw-r--r-- | drivers/usb/serial/io_ti.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 6c96fdaec36e..ebf9967f7c86 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -2845,9 +2845,8 @@ static struct edge_buf *edge_buf_alloc(unsigned int size) | |||
2845 | 2845 | ||
2846 | void edge_buf_free(struct edge_buf *eb) | 2846 | void edge_buf_free(struct edge_buf *eb) |
2847 | { | 2847 | { |
2848 | if (eb != NULL) { | 2848 | if (eb) { |
2849 | if (eb->buf_buf != NULL) | 2849 | kfree(eb->buf_buf); |
2850 | kfree(eb->buf_buf); | ||
2851 | kfree(eb); | 2850 | kfree(eb); |
2852 | } | 2851 | } |
2853 | } | 2852 | } |