mei: mei_irq_thread_write_handler - line break fix
1. straight up lines that doesn't cross 80 characters 2. don't break strings Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b45f3ccf80
commit
483136ea0e
|
@ -1199,8 +1199,7 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
|
||||||
dev_dbg(&dev->pdev->dev, "complete all waiting for write cb.\n");
|
dev_dbg(&dev->pdev->dev, "complete all waiting for write cb.\n");
|
||||||
|
|
||||||
list = &dev->write_waiting_list;
|
list = &dev->write_waiting_list;
|
||||||
list_for_each_entry_safe(pos, next,
|
list_for_each_entry_safe(pos, next, &list->mei_cb.cb_list, cb_list) {
|
||||||
&list->mei_cb.cb_list, cb_list) {
|
|
||||||
cl = (struct mei_cl *)pos->file_private;
|
cl = (struct mei_cl *)pos->file_private;
|
||||||
if (cl == NULL)
|
if (cl == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
@ -1210,8 +1209,7 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
|
||||||
if (MEI_WRITING == cl->writing_state &&
|
if (MEI_WRITING == cl->writing_state &&
|
||||||
(pos->major_file_operations == MEI_WRITE) &&
|
(pos->major_file_operations == MEI_WRITE) &&
|
||||||
(cl != &dev->iamthif_cl)) {
|
(cl != &dev->iamthif_cl)) {
|
||||||
dev_dbg(&dev->pdev->dev,
|
dev_dbg(&dev->pdev->dev, "MEI WRITE COMPLETE\n");
|
||||||
"MEI WRITE COMPLETE\n");
|
|
||||||
cl->writing_state = MEI_WRITE_COMPLETE;
|
cl->writing_state = MEI_WRITE_COMPLETE;
|
||||||
list_add_tail(&pos->cb_list,
|
list_add_tail(&pos->cb_list,
|
||||||
&cmpl_list->mei_cb.cb_list);
|
&cmpl_list->mei_cb.cb_list);
|
||||||
|
@ -1219,8 +1217,7 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
|
||||||
if (cl == &dev->iamthif_cl) {
|
if (cl == &dev->iamthif_cl) {
|
||||||
dev_dbg(&dev->pdev->dev, "check iamthif flow control.\n");
|
dev_dbg(&dev->pdev->dev, "check iamthif flow control.\n");
|
||||||
if (dev->iamthif_flow_control_pending) {
|
if (dev->iamthif_flow_control_pending) {
|
||||||
ret = _mei_irq_thread_iamthif_read(
|
ret = _mei_irq_thread_iamthif_read(dev, slots);
|
||||||
dev, slots);
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -1248,8 +1245,7 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
|
||||||
mei_flow_ctrl_creds(dev, &dev->wd_cl) > 0) {
|
mei_flow_ctrl_creds(dev, &dev->wd_cl) > 0) {
|
||||||
if (mei_wd_send(dev))
|
if (mei_wd_send(dev))
|
||||||
dev_dbg(&dev->pdev->dev, "wd send failed.\n");
|
dev_dbg(&dev->pdev->dev, "wd send failed.\n");
|
||||||
else
|
else if (mei_flow_ctrl_reduce(dev, &dev->wd_cl))
|
||||||
if (mei_flow_ctrl_reduce(dev, &dev->wd_cl))
|
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
dev->wd_pending = false;
|
dev->wd_pending = false;
|
||||||
|
@ -1313,14 +1309,11 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
|
||||||
if (cl != &dev->iamthif_cl) {
|
if (cl != &dev->iamthif_cl) {
|
||||||
if (mei_flow_ctrl_creds(dev, cl) <= 0) {
|
if (mei_flow_ctrl_creds(dev, cl) <= 0) {
|
||||||
dev_dbg(&dev->pdev->dev,
|
dev_dbg(&dev->pdev->dev,
|
||||||
"No flow control"
|
"No flow control credentials for client %d, not sending.\n",
|
||||||
" credentials for client"
|
|
||||||
" %d, not sending.\n",
|
|
||||||
cl->host_client_id);
|
cl->host_client_id);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ret = _mei_irq_thread_cmpl(dev, slots,
|
ret = _mei_irq_thread_cmpl(dev, slots, pos,
|
||||||
pos,
|
|
||||||
cl, cmpl_list);
|
cl, cmpl_list);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -1330,17 +1323,12 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
|
||||||
dev_dbg(&dev->pdev->dev, "complete amthi write cb.\n");
|
dev_dbg(&dev->pdev->dev, "complete amthi write cb.\n");
|
||||||
if (mei_flow_ctrl_creds(dev, cl) <= 0) {
|
if (mei_flow_ctrl_creds(dev, cl) <= 0) {
|
||||||
dev_dbg(&dev->pdev->dev,
|
dev_dbg(&dev->pdev->dev,
|
||||||
"No flow control"
|
"No flow control credentials for amthi client %d.\n",
|
||||||
" credentials for amthi"
|
|
||||||
" client %d.\n",
|
|
||||||
cl->host_client_id);
|
cl->host_client_id);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ret = _mei_irq_thread_cmpl_iamthif(dev,
|
ret = _mei_irq_thread_cmpl_iamthif(dev, slots, pos,
|
||||||
slots,
|
cl, cmpl_list);
|
||||||
pos,
|
|
||||||
cl,
|
|
||||||
cmpl_list);
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue