Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Avoid missing field init...
details: https://anonhg.NetBSD.org/src/rev/93f77574683c
branches: trunk
changeset: 332354:93f77574683c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Sep 17 16:16:33 2014 +0000
description:
Avoid missing field initializers.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 1702d24c8d01 -r 93f77574683c sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c Wed Sep 17 16:10:41 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c Wed Sep 17 16:16:33 2014 +0000
@@ -370,7 +370,8 @@
{
int ret = 0;
u32 *cmd, *batch_base, *batch_end;
- struct drm_i915_cmd_descriptor default_desc = { 0 };
+ static const struct drm_i915_cmd_descriptor zero_default_desc;
+ struct drm_i915_cmd_descriptor default_desc = zero_default_desc;
int needs_clflush = 0;
ret = i915_gem_obj_prepare_shmem_read(batch_obj, &needs_clflush);
Home |
Main Index |
Thread Index |
Old Index