[PATCH] gpu: drm: exynos: Remove set but unused value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Hariprasad Kelam <hariprasad.kelam@xxxxxxxxx>

fix below defect reported by coverity
In exynos_dsi_read_from_fifo: A value assigned to a variable is never
used.
fix Defect:1451826
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@xxxxxxxxx>
---
 drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
index 6926cee..5310879 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
@@ -1051,12 +1051,11 @@ static void exynos_dsi_read_from_fifo(struct exynos_dsi *dsi,
 		}
 
 		length = (reg >> 8) & 0xffff;
-		if (length > xfer->rx_len) {
+		if (length > xfer->rx_len)
 			dev_err(dev,
 				"response too long (%u > %u bytes), stripping\n",
 				xfer->rx_len, length);
-			length = xfer->rx_len;
-		} else if (length < xfer->rx_len)
+		else if (length < xfer->rx_len)
 			xfer->rx_len = length;
 	}
 
-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux