diff options
Diffstat (limited to 'drivers/s390/net/lcs.c')
-rw-r--r-- | drivers/s390/net/lcs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 46f34ba93ac5..1c8ad2fcad8a 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -145,8 +145,7 @@ lcs_free_channel(struct lcs_channel *channel) | |||
145 | 145 | ||
146 | LCS_DBF_TEXT(2, setup, "ichfree"); | 146 | LCS_DBF_TEXT(2, setup, "ichfree"); |
147 | for (cnt = 0; cnt < LCS_NUM_BUFFS; cnt++) { | 147 | for (cnt = 0; cnt < LCS_NUM_BUFFS; cnt++) { |
148 | if (channel->iob[cnt].data != NULL) | 148 | kfree(channel->iob[cnt].data); |
149 | kfree(channel->iob[cnt].data); | ||
150 | channel->iob[cnt].data = NULL; | 149 | channel->iob[cnt].data = NULL; |
151 | } | 150 | } |
152 | } | 151 | } |