lkml.org 
[lkml]   [2009]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 27/56] ipv4: Remove void casts
[Added maintainer CC]
Jack Stone wrote:
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@fastmail.fm>
> ---
> net/ipv4/route.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/net/ipv4/route.c b/net/ipv4/route.c
> index c40debe..3699077 100644
> --- a/net/ipv4/route.c
> +++ b/net/ipv4/route.c
> @@ -2707,8 +2707,7 @@ static struct dst_ops ipv4_dst_blackhole_ops = {
> static int ipv4_dst_blackhole(struct net *net, struct rtable **rp, struct flowi *flp)
> {
> struct rtable *ort = *rp;
> - struct rtable *rt = (struct rtable *)
> - dst_alloc(&ipv4_dst_blackhole_ops);
> + struct rtable *rt = dst_alloc(&ipv4_dst_blackhole_ops);
>
> if (rt) {
> struct dst_entry *new = &rt->u.dst;
>



\
 
 \ /
  Last update: 2009-04-09 12:11    [W:0.288 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site