Merge branch 'net-ipa-a-mix-of-small-improvements'
authorJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 22:56:22 +0000 (14:56 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 22:57:20 +0000 (14:57 -0800)
commit163a180213afb2d0ec16cd71d0e0669cb940cd08
tree88de441490e429251cb947fdaa30a4d4d9a75262
parentbfc213f15918a991b1aefbb3cf0c2cb618559efd
parentcd1150098f2cc7bd05740c105488c293f6761f5a
Merge branch 'net-ipa-a-mix-of-small-improvements'

Alex Elder says:

====================
net: ipa: a mix of small improvements

Version 2 of this series restructures a couple of the changed
functions (in patches 1 and 2) to avoid blocks of indented code
by returning early when possible, as suggested by Jakub.  The
description of the first patch was changed as a result, to better
reflect what the updated patch does.  It also fixes one spot I
identified when updating the code, where gsi_channel_stop() was
doing the wrong thing on error.

The original description for this series is below.

This series contains a sort of unrelated set of code cleanups.

The first two are things I wanted to do in a series that updated
some NAPI code recently.  I didn't want to change things in a way
that affected existing testing so I set these aside for later
(i.e., now).

The third makes a change to event ring handling that's similar to
what was done a while back for channels.  There's little benefit to
cacheing the current state of an event ring, so with this we'll just
fetch the state from hardware whenever we need it.

The fourth patch removes the definitions of two unused symbols.

The fifth replaces a count that is always 0 or 1 with a Boolean.

The sixth removes a build-time validation check that doesn't really
provide benefit.

And the last one fixes a problem (in two spots) that could cause a
build-time check to fail "bogusly".
====================

Link: https://lore.kernel.org/r/20210205221100.1738-1-elder@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>