diff options
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r-- | drivers/misc/mei/init.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 6197018e2f16..a7d29a7dcab2 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -165,12 +165,7 @@ void mei_reset(struct mei_device *dev, int interrupts_enabled) | |||
165 | /* remove entry if already in list */ | 165 | /* remove entry if already in list */ |
166 | dev_dbg(&dev->pdev->dev, "remove iamthif and wd from the file list.\n"); | 166 | dev_dbg(&dev->pdev->dev, "remove iamthif and wd from the file list.\n"); |
167 | mei_cl_unlink(&dev->wd_cl); | 167 | mei_cl_unlink(&dev->wd_cl); |
168 | if (dev->open_handle_count > 0) | ||
169 | dev->open_handle_count--; | ||
170 | mei_cl_unlink(&dev->iamthif_cl); | 168 | mei_cl_unlink(&dev->iamthif_cl); |
171 | if (dev->open_handle_count > 0) | ||
172 | dev->open_handle_count--; | ||
173 | |||
174 | mei_amthif_reset_params(dev); | 169 | mei_amthif_reset_params(dev); |
175 | memset(&dev->wr_ext_msg, 0, sizeof(dev->wr_ext_msg)); | 170 | memset(&dev->wr_ext_msg, 0, sizeof(dev->wr_ext_msg)); |
176 | } | 171 | } |