Commit 127704f5 authored by Jani Nikula's avatar Jani Nikula

drm/i915/bios: remove an unnecessary temp variable

Prepare for merging parse_device_mapping() into
parse_general_definitions(). No functional changes.
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/f1c3621e2622f4debdfb4a2f5c1959845754ac04.1506586821.git.jani.nikula@intel.com
parent 2d936f1c
...@@ -1265,7 +1265,6 @@ parse_device_mapping(struct drm_i915_private *dev_priv, ...@@ -1265,7 +1265,6 @@ parse_device_mapping(struct drm_i915_private *dev_priv,
{ {
const struct bdb_general_definitions *defs; const struct bdb_general_definitions *defs;
const struct child_device_config *child; const struct child_device_config *child;
struct child_device_config *child_dev_ptr;
int i, child_device_num, count; int i, child_device_num, count;
u8 expected_size; u8 expected_size;
u16 block_size; u16 block_size;
...@@ -1337,16 +1336,14 @@ parse_device_mapping(struct drm_i915_private *dev_priv, ...@@ -1337,16 +1336,14 @@ parse_device_mapping(struct drm_i915_private *dev_priv,
continue; continue;
} }
child_dev_ptr = dev_priv->vbt.child_dev + count;
count++;
/* /*
* Copy as much as we know (sizeof) and is available * Copy as much as we know (sizeof) and is available
* (child_dev_size) of the child device. Accessing the data must * (child_dev_size) of the child device. Accessing the data must
* depend on VBT version. * depend on VBT version.
*/ */
memcpy(child_dev_ptr, child, memcpy(dev_priv->vbt.child_dev + count, child,
min_t(size_t, defs->child_dev_size, sizeof(*child))); min_t(size_t, defs->child_dev_size, sizeof(*child)));
count++;
} }
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment