diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-02-21 11:28:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-21 13:16:15 -0500 |
commit | 3eb2d9982288fbbbdc671af0fee4b9eb71d11b75 (patch) | |
tree | a25cab6370ac7aeb548f6ae8a10fdbaf55756cae /Documentation/fb | |
parent | net: mvpp2: drop useless fields in mvpp2_bm_pool and related code (diff) | |
download | linux-dev-3eb2d9982288fbbbdc671af0fee4b9eb71d11b75.tar.xz linux-dev-3eb2d9982288fbbbdc671af0fee4b9eb71d11b75.zip |
net: mvpp2: simplify mvpp2_bm_bufs_add()
The mvpp2_bm_bufs_add() currently creates a fake cookie by calling
mvpp2_bm_cookie_pool_set(), just to be able to call
mvpp2_pool_refill(). But all what mvpp2_pool_refill() does is extract
the pool ID from the cookie, and call mvpp2_bm_pool_put() with this ID.
Instead of doing this convoluted thing, just call mvpp2_bm_pool_put()
directly, since we have the BM pool ID.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/fb')
0 files changed, 0 insertions, 0 deletions