aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2017-11-14 22:33:46 +0000
committerChris Wilson <[email protected]>2017-11-14 23:50:49 +0000
commit6e1281412ab9e6772d8f6c26e592181fcdd2ae0c (patch)
tree102892ea5986e3bcfa3a106191805ce3257b8a58 /lib/mpi/mpi-bit.c
parent7469c62cb6549cf72bfd4d63cb3fc5f34eb0b2d0 (diff)
drm/i915/selftests: Always initialise err
smatch does not track initialised values as well as gcc, and this triggers many warnings by smatch not presented by gcc. Silence smatch by initialising the error values to -ENODEV, which we use to denote internal errors. (If we see a selftest fail with a silent -ENODEV, we know smatch was right!) v2: smatch was right about igt_create_vma(), it may unlikely fail on the first object allocation which we want to be loud about. Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Dhinakaran Pandiyan <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions