From: Ebru Akagunduz Date: Sun, 27 Oct 2013 22:58:02 +0000 (+0200) Subject: Staging: vt6656: Fix Sparse Warning: cast from restricted gfp_t in hostap.c X-Git-Tag: upstream/snapshot3+hdmi~4059^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6dfd609b4d08519185ace2878871710a92a520c3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Staging: vt6656: Fix Sparse Warning: cast from restricted gfp_t in hostap.c This patch fixes the following type of sparse warnings: drivers/staging/vt6656/hostap.c:688:42: warning: cast from restricted gfp_t drivers/staging/vt6656/hostap.c:688:42: warning: incorrect type in argument 2 (different base types) drivers/staging/vt6656/hostap.c:688:42: expected restricted gfp_t [usertype] flags drivers/staging/vt6656/hostap.c:688:42: got int [signed] Signed-off-by: Ebru Akagunduz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c index 7d96fe7..ae1676d 100644 --- a/drivers/staging/vt6656/hostap.c +++ b/drivers/staging/vt6656/hostap.c @@ -685,7 +685,7 @@ int vt6656_hostap_ioctl(struct vnt_private *pDevice, struct iw_point *p) p->length > VIAWGET_HOSTAPD_MAX_BUF_SIZE || !p->pointer) return -EINVAL; - param = kmalloc((int)p->length, (int)GFP_KERNEL); + param = kmalloc((int)p->length, GFP_KERNEL); if (param == NULL) return -ENOMEM;