X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fchar%2Fsynclinkmp.c;h=7c063c5abc5596532b5aa2aec0c4586d40253210;hb=8cde0776ec1e86c270f65bf482f96288e6bf0023;hp=f185724448b142e6da58b3761e10ac74f85f9a05;hpb=1480d0a31db62b9803f829cc0e5cc71935ffe3cc;p=linux-2.6 diff --git a/drivers/char/synclinkmp.c b/drivers/char/synclinkmp.c index f185724448..7c063c5abc 100644 --- a/drivers/char/synclinkmp.c +++ b/drivers/char/synclinkmp.c @@ -2788,10 +2788,8 @@ static void shutdown(SLMP_INFO * info) del_timer(&info->tx_timer); del_timer(&info->status_timer); - if (info->tx_buf) { - kfree(info->tx_buf); - info->tx_buf = NULL; - } + kfree(info->tx_buf); + info->tx_buf = NULL; spin_lock_irqsave(&info->lock,flags); @@ -3611,8 +3609,7 @@ int alloc_tmp_rx_buf(SLMP_INFO *info) void free_tmp_rx_buf(SLMP_INFO *info) { - if (info->tmp_rx_buf) - kfree(info->tmp_rx_buf); + kfree(info->tmp_rx_buf); info->tmp_rx_buf = NULL; }