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

Skip to content
Commit ca803c1a authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

coresight: fix uninitialized variable warning



The compiler thinks that phys_pte could be used uninitialized (if
sg_tbl_num == 0). Fix this.

The specific warning being fixed is:

    drivers/coresight/coresight-tmc.c: In function 'tmc_read':
    drivers/coresight/coresight-tmc.c:1411:14: warning: 'phys_pte' may \
        be used uninitialized in this function [-Wuninitialized]
    error, forbidden warning: coresight-tmc.c:1411

Change-Id: Id26d5ccc8230dc5409c53dc14925ec9067d3dd02
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 346bd8b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment