Commit 9a47dc5f authored by Prathamesh Deshpande's avatar Prathamesh Deshpande Committed by Greg Kroah-Hartman

staging: wlan-ng: prism2fw.c: Fix "Possible unnecessary 'out of memory'...

staging: wlan-ng: prism2fw.c: Fix "Possible unnecessary 'out of memory' message" checkpatch.pl warning"

This patch removes unnecessary out of memory warning
message from wlan-ng prism2fw.c file.
Signed-off-by: default avatarPrathamesh Deshpande <prathameshdeshpande7@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5f98ddc9
...@@ -556,10 +556,9 @@ static int mkimage(struct imgchunk *clist, unsigned int *ccnt) ...@@ -556,10 +556,9 @@ static int mkimage(struct imgchunk *clist, unsigned int *ccnt)
/* Allocate buffer space for chunks */ /* Allocate buffer space for chunks */
for (i = 0; i < *ccnt; i++) { for (i = 0; i < *ccnt; i++) {
clist[i].data = kzalloc(clist[i].len, GFP_KERNEL); clist[i].data = kzalloc(clist[i].len, GFP_KERNEL);
if (!clist[i].data) { if (!clist[i].data)
pr_err("failed to allocate image space, exiting.\n");
return 1; return 1;
}
pr_debug("chunk[%d]: addr=0x%06x len=%d\n", pr_debug("chunk[%d]: addr=0x%06x len=%d\n",
i, clist[i].addr, clist[i].len); i, clist[i].addr, clist[i].len);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment