lkml.org 
[lkml]   [2020]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3 1/2] wan/hdlc_x25: make lapb params configurable
From
From: Martin Schiller <ms@dev.tdt.de>
Date: Mon, 20 Jan 2020 07:14:15 +0100

> +static struct x25_state *state(hdlc_device *hdlc)
> +{
> + return (struct x25_state *)hdlc->state;
> +}

Because hdlc->state is "void *", this cast is unnecessary.

\
 
 \ /
  Last update: 2020-01-20 13:15    [W:0.064 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site