From 35669caf930550857d39016959bdc141f141f121 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Tue, 3 Feb 2015 11:34:18 +0000 Subject: [PATCH] Followup to r278147. Two more sign errors. Noted by: hps Sponsored by: The FreeBSD Foundation --- sys/dev/drm2/i915/intel_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/drm2/i915/intel_dp.c b/sys/dev/drm2/i915/intel_dp.c index bcb6c1964f7..e9674b0d8f2 100644 --- a/sys/dev/drm2/i915/intel_dp.c +++ b/sys/dev/drm2/i915/intel_dp.c @@ -609,7 +609,7 @@ intel_dp_i2c_aux_ch(device_t idev, int mode, uint8_t write_byte, reply, reply_bytes); if (ret < 0) { DRM_DEBUG_KMS("aux_ch failed %d\n", ret); - return (-ret); + return (ret); } switch (reply[0] & AUX_NATIVE_REPLY_MASK) { @@ -650,7 +650,7 @@ intel_dp_i2c_aux_ch(device_t idev, int mode, uint8_t write_byte, } DRM_ERROR("too many retries, giving up\n"); - return (EREMOTEIO); + return (-EREMOTEIO); } static void ironlake_edp_panel_vdd_on(struct intel_dp *intel_dp);