X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsocket.c;h=b38a263853c32038b07fe7dcb9dae457d4456722;hb=1dba9743337cabacea79e47ed6d709e636c5ed47;hp=06fa217f58a99cb93b72b28ca99e85b7dc3739cd;hpb=d779188d2baf436e67fe8816fca2ef53d246900f;p=linux-2.6 diff --git a/net/socket.c b/net/socket.c index 06fa217f58..b38a263853 100644 --- a/net/socket.c +++ b/net/socket.c @@ -993,7 +993,7 @@ static int sock_fasync(int fd, struct file *filp, int on) if (on) { - fna=(struct fasync_struct *)kmalloc(sizeof(struct fasync_struct), GFP_KERNEL); + fna = kmalloc(sizeof(struct fasync_struct), GFP_KERNEL); if(fna==NULL) return -ENOMEM; }