Skip to content

Commit

Permalink
platform/surface: clean up a variable in surface_dtx_read()
Browse files Browse the repository at this point in the history
The "&client->ddev->lock" and "&ddev->lock" are the same thing.  Let's
use "&ddev->lock" consistently.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/YF3TgCcpcCYl3a//@mwanda
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  • Loading branch information
Dan Carpenter authored and Hans de Goede committed Apr 7, 2021
1 parent dff935f commit 4d7ddd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/surface/surface_dtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 4d7ddd8

Please sign in to comment.