From: Dan Carpenter Date: Fri, 26 Mar 2021 12:28:48 +0000 (+0300) Subject: platform/surface: clean up a variable in surface_dtx_read() X-Git-Tag: io_uring-5.13-2021-05-07~91^2~38 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=4d7ddd8d30da80518f50e7e19b67e9ec5489ddba;p=linux-2.6-block.git platform/surface: clean up a variable in surface_dtx_read() The "&client->ddev->lock" and "&ddev->lock" are the same thing. Let's use "&ddev->lock" consistently. Signed-off-by: Dan Carpenter Reviewed-by: Maximilian Luz Link: https://lore.kernel.org/r/YF3TgCcpcCYl3a//@mwanda Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/surface/surface_dtx.c b/drivers/platform/surface/surface_dtx.c index 1fedacf74050..63ce587e79e3 100644 --- a/drivers/platform/surface/surface_dtx.c +++ b/drivers/platform/surface/surface_dtx.c @@ -487,7 +487,7 @@ static ssize_t surface_dtx_read(struct file *file, char __user *buf, size_t coun if (status < 0) return status; - if (down_read_killable(&client->ddev->lock)) + if (down_read_killable(&ddev->lock)) return -ERESTARTSYS; /* Need to check that we're not shut down again. */