diff options
author | Joe Perches <joe@perches.com> | 2013-02-03 12:28:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-04 13:22:34 -0500 |
commit | 0d2e7a5c608063f72048899d20505c2ee130566c (patch) | |
tree | 4eae4acaf7c04bb60337389aaef8065c00b1737a /drivers/net/wireless/at76c50x-usb.c | |
parent | 9d11bd1592fba0b9231d3ce8ab61977db7e03e27 (diff) |
wireless: Remove unnecessary alloc/OOM messages, alloc cleanups
alloc failures already get standardized OOM
messages and a dump_stack.
Convert kzalloc's with multiplies to kcalloc.
Convert kmalloc's with multiplies to kmalloc_array.
Remove now unused variables.
Remove unnecessary memset after kzalloc->kcalloc.
Whitespace cleanups for these changes.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/at76c50x-usb.c')
-rw-r--r-- | drivers/net/wireless/at76c50x-usb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c index 77fa4286e5e9..5ac5f7ae2721 100644 --- a/drivers/net/wireless/at76c50x-usb.c +++ b/drivers/net/wireless/at76c50x-usb.c | |||
@@ -2164,10 +2164,8 @@ static int at76_alloc_urbs(struct at76_priv *priv, | |||
2164 | 2164 | ||
2165 | buffer_size = sizeof(struct at76_tx_buffer) + MAX_PADDING_SIZE; | 2165 | buffer_size = sizeof(struct at76_tx_buffer) + MAX_PADDING_SIZE; |
2166 | priv->bulk_out_buffer = kmalloc(buffer_size, GFP_KERNEL); | 2166 | priv->bulk_out_buffer = kmalloc(buffer_size, GFP_KERNEL); |
2167 | if (!priv->bulk_out_buffer) { | 2167 | if (!priv->bulk_out_buffer) |
2168 | dev_err(&interface->dev, "cannot allocate output buffer\n"); | ||
2169 | return -ENOMEM; | 2168 | return -ENOMEM; |
2170 | } | ||
2171 | 2169 | ||
2172 | at76_dbg(DBG_PROC_ENTRY, "%s: EXIT", __func__); | 2170 | at76_dbg(DBG_PROC_ENTRY, "%s: EXIT", __func__); |
2173 | 2171 | ||