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>
Esse commit está contido em:
@@ -155,7 +155,6 @@ static int upload_code(struct usb_device *udev,
|
||||
*/
|
||||
p = kmalloc(MAX_TRANSFER_SIZE, GFP_KERNEL);
|
||||
if (!p) {
|
||||
dev_err(&udev->dev, "out of memory\n");
|
||||
r = -ENOMEM;
|
||||
goto error;
|
||||
}
|
||||
|
Referência em uma nova issue
Block a user