Skip to contentSkip to conversation

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

PATCH Superseded Prathamesh Deshpande 2 participants 2 messages Dec 24, 2018 – Jan 2, 2019 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/staging/wlan-ng/prism2fw.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/wlan-ng/prism2fw.c +0 -1
index bb572b7..c040066 100644
@@ -557,7 +557,6 @@ static int mkimage(struct imgchunk *clist, unsigned int *ccnt)
 	for (i = 0; i < *ccnt; i++) {
 		clist[i].data = kzalloc(clist[i].len, GFP_KERNEL);
 		if (!clist[i].data) {
-			pr_err("failed to allocate image space, exiting.\n");
 			return 1;
 		}
 		pr_debug("chunk[%d]: addr=0x%06x len=%d\n",
Signature · 1 line
1.8.3.1
#1 lore raw

The subject is too long.

Quoted 13 lines · Prathamesh Deshpande

This patch removes unnecessary out of memory warning message from wlan-ng prism2fw.c file.

---
 drivers/staging/wlan-ng/prism2fw.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/wlan-ng/prism2fw.c +0 -0
index bb572b7..c040066 100644

drivers/staging/wlan-ng/prism2fw.c static int mkimage(struct imgchunk *clist, unsigned int *ccnt) · line 561

Quoted 6 lines
drivers/staging/wlan-ng/prism2fw.c +0 -1
@@ -557,7 +557,6 @@ static int mkimage(struct imgchunk *clist, unsigned int *ccnt)
 	for (i = 0; i < *ccnt; i++) {
 		clist[i].data = kzalloc(clist[i].len, GFP_KERNEL);
 		if (!clist[i].data) {
-			pr_err("failed to allocate image space, exiting.\n");
 			return 1;
 		}

Remove the curly braces.

regards,
dan carpenter