Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b47eb6cd authored by Silvio Fricke's avatar Silvio Fricke Committed by Greg Kroah-Hartman
Browse files

staging: vt6655: removed incorrect casting in ioctl.c



This patch fixes the following type of sparse warnings:

drivers/staging/vt6655/ioctl.c:308:104: warning: cast from restricted gfp_t
drivers/staging/vt6655/ioctl.c:579:109: warning: cast from restricted gfp_t

Signed-off-by: default avatarSilvio Fricke <silvio.fricke@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 77be4f47
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -305,7 +305,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
			result = -EINVAL;
			result = -EINVAL;
			break;
			break;
		}
		}
		pList = (PSBSSIDList)kmalloc(sizeof(SBSSIDList) + (sList.uItem * sizeof(SBSSIDItem)), (int)GFP_ATOMIC);
		pList = (PSBSSIDList)kmalloc(sizeof(SBSSIDList) + (sList.uItem * sizeof(SBSSIDItem)),
					     GFP_ATOMIC);
		if (pList == NULL) {
		if (pList == NULL) {
			result = -ENOMEM;
			result = -ENOMEM;
			break;
			break;
@@ -576,7 +577,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
			result = -EINVAL;
			result = -EINVAL;
			break;
			break;
		}
		}
		pNodeList = (PSNodeList)kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)), (int)GFP_ATOMIC);
		pNodeList = (PSNodeList)kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)),
						GFP_ATOMIC);
		if (pNodeList == NULL) {
		if (pNodeList == NULL) {
			result = -ENOMEM;
			result = -ENOMEM;
			break;
			break;