Re: [PATCH 1/1] net: qlcnic: avoid superfluous assignement

From: David Miller
Date: Sun Jul 31 2016 - 23:33:46 EST


From: zhuyj <zyjzyj2000@xxxxxxxxx>
Date: Mon, 1 Aug 2016 10:57:20 +0800

> Sorry.
> An inline function will be inserted into the calling function. Why
> "Assigning NULL to parmeter dcb has no effect outside of the
> inlined function." ?

It doesn't do anything to "dcb" in the calling function, that's not
how inlining works.

The inlined function behaves exactly as if it were called as a
non-inline function from the perspective of side effects visible to
the program.