Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5e4d86f8 authored by George Burgess IV's avatar George Burgess IV Committed by George Burgess
Browse files

audioflinger: remove null checks

This code has null checks with intervening unconditional dereferences of
the potentially-null variable.

It's not clear that `mOutput` can ever be null to begin with. If it can
be, we have a few dereferences to guard. :)

Caught by the static analyzer:

frameworks/av/services/audioflinger/Threads.cpp:2671:19: warning: Called
C++ object pointer is null [clang-analyzer-core.CallAndMessage]
frameworks/av/services/audioflinger/Threads.cpp:2852:9: warning: Called
C++ object pointer is null [clang-analyzer-core.CallAndMessage]

Bug: None
Test: TreeHugger

Change-Id: I456581204718390088998a1fe2514dff63f6578f
parent 697aec85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment