staging: vt6655: removed incorrect casting in ioctl.c
authorSilvio Fricke <silvio.fricke@gmail.com>
Sat, 12 Apr 2014 00:30:25 +0000 (02:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Apr 2014 23:11:56 +0000 (16:11 -0700)
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: Silvio Fricke <silvio.fricke@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/ioctl.c

index b5cd2e44e53dac9079c9964bdbe97cc10fb2c907..1de5d2c907d2433390bf6b6870ad3254806aea9c 100644 (file)
@@ -305,7 +305,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
                        result = -EINVAL;
                        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) {
                        result = -ENOMEM;
                        break;
@@ -576,7 +577,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
                        result = -EINVAL;
                        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) {
                        result = -ENOMEM;
                        break;