diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2013-01-08 23:07:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-08 16:40:45 -0800 |
commit | d91aaed30a938c5daae2641e6758dfab8727862e (patch) | |
tree | ea42318ed306ca9747fe33a0d04a812857a013b5 /drivers/misc/mei/main.c | |
parent | 9dc64d6a26b016df52d222abe9279a92d9f7cc4c (diff) | |
download | op-kernel-dev-d91aaed30a938c5daae2641e6758dfab8727862e.zip op-kernel-dev-d91aaed30a938c5daae2641e6758dfab8727862e.tar.gz |
mei: drop read_pending member form struct mei_cl
read_pending never changes, it is a leftover from the old code.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r-- | drivers/misc/mei/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index e31ade3..5c7c855 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c @@ -380,7 +380,6 @@ free: mei_io_cb_free(cb); cl->reading_state = MEI_IDLE; cl->read_cb = NULL; - cl->read_pending = 0; out: dev_dbg(&dev->pdev->dev, "end mei read rets= %d\n", rets); mutex_unlock(&dev->device_lock); @@ -462,9 +461,8 @@ static ssize_t mei_write(struct file *file, const char __user *ubuf, write_cb = NULL; cl->reading_state = MEI_IDLE; cl->read_cb = NULL; - cl->read_pending = 0; } - } else if (cl->reading_state == MEI_IDLE && !cl->read_pending) + } else if (cl->reading_state == MEI_IDLE) *offset = 0; |