X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsocket.c;h=b38a263853c32038b07fe7dcb9dae457d4456722;hb=8b3a70058bfe711b2d05ba2134178bae623183ce;hp=06fa217f58a99cb93b72b28ca99e85b7dc3739cd;hpb=25c862cc9ea9b312c25a9f577f91b973131f1261;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; }