drm/i915/tv: Nuke silly 0 initialzation of xpos/ypos
Just assign the margin values directly to xpos/ypos instead of first initializing to zero and then adding the values. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181112170000.27531-8-ville.syrjala@linux.intel.com Reviewed-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
parent
56f6230811
commit
bda5f53206
1 changed files with 3 additions and 3 deletions
|
@ -993,7 +993,7 @@ static void intel_tv_pre_enable(struct intel_encoder *encoder,
|
||||||
const struct video_levels *video_levels;
|
const struct video_levels *video_levels;
|
||||||
const struct color_conversion *color_conversion;
|
const struct color_conversion *color_conversion;
|
||||||
bool burst_ena;
|
bool burst_ena;
|
||||||
int xpos = 0x0, ypos = 0x0;
|
int xpos, ypos;
|
||||||
unsigned int xsize, ysize;
|
unsigned int xsize, ysize;
|
||||||
|
|
||||||
if (!tv_mode)
|
if (!tv_mode)
|
||||||
|
@ -1102,8 +1102,8 @@ static void intel_tv_pre_enable(struct intel_encoder *encoder,
|
||||||
else
|
else
|
||||||
ysize = 2 * (tv_mode->nbr_end + 1);
|
ysize = 2 * (tv_mode->nbr_end + 1);
|
||||||
|
|
||||||
xpos += conn_state->tv.margins.left;
|
xpos = conn_state->tv.margins.left;
|
||||||
ypos += conn_state->tv.margins.top;
|
ypos = conn_state->tv.margins.top;
|
||||||
xsize -= (conn_state->tv.margins.left +
|
xsize -= (conn_state->tv.margins.left +
|
||||||
conn_state->tv.margins.right);
|
conn_state->tv.margins.right);
|
||||||
ysize -= (conn_state->tv.margins.top +
|
ysize -= (conn_state->tv.margins.top +
|
||||||
|
|
Loading…
Reference in a new issue