BpfMap: readValue() - pass key by reference
clear oversight... Test: TreeHugger Flag: EXEMPT mainline Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I1455aba2c41e91840afe7bdcc128a709e2ecf7d5
This commit is contained in:
parent
85b1b23872
commit
43b0ef8235
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ class BpfMapRO {
|
|||
return nextKey;
|
||||
}
|
||||
|
||||
Result<Value> readValue(const Key key) const {
|
||||
Result<Value> readValue(const Key& key) const {
|
||||
Value value;
|
||||
if (findMapEntry(mMapFd, &key, &value)) {
|
||||
return ErrnoErrorf("BpfMap::readValue() failed");
|
||||
|
|
|
|||
Loading…
Reference in a new issue