Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: comedi: Fix coding style issues in drivers.c

This patch fixes line over 80 characters warning issues found
in file drivers.c

Signed-off-by: Xenofon Foukas <foukas.xenofon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Xenofon Foukas and committed by
Greg Kroah-Hartman
88ab8a84 fd599985

+15 -11
+15 -11
drivers/staging/comedi/drivers.c
··· 117 117 118 118 for (driv = comedi_drivers; driv; driv = driv->next) { 119 119 if (!try_module_get(driv->module)) { 120 - printk 121 - (KERN_INFO "comedi: failed to increment module count, skipping\n"); 120 + printk(KERN_INFO "comedi: failed to increment module count, skipping\n"); 122 121 continue; 123 122 } 124 123 if (driv->num_names) { ··· 204 205 mutex_lock(&dev->mutex); 205 206 if (dev->attached && dev->driver == driver) { 206 207 if (dev->use_count) 207 - printk 208 - (KERN_WARNING "BUG! detaching device with use_count=%d\n", 209 - dev->use_count); 208 + printk(KERN_WARNING "BUG! detaching device with use_count=%d\n", 209 + dev->use_count); 210 210 comedi_device_detach(dev); 211 211 } 212 212 mutex_unlock(&dev->mutex); ··· 440 442 unsigned i; 441 443 for (i = 0; i < async->n_buf_pages; ++i) { 442 444 if (async->buf_page_list[i].virt_addr) { 443 - clear_bit(PG_reserved, &(virt_to_page(async->buf_page_list[i].virt_addr)->flags)); 445 + clear_bit(PG_reserved, 446 + &(virt_to_page(async->buf_page_list[i]. 447 + virt_addr)->flags)); 444 448 if (s->async_dma_dir != DMA_NONE) { 445 449 dma_free_coherent(dev->hw_dev, 446 450 PAGE_SIZE, ··· 494 494 break; 495 495 496 496 set_bit(PG_reserved, 497 - &(virt_to_page(async->buf_page_list[i].virt_addr)->flags)); 498 - pages[i] = virt_to_page(async->buf_page_list[i].virt_addr); 497 + &(virt_to_page(async->buf_page_list[i]. 498 + virt_addr)->flags)); 499 + pages[i] = virt_to_page(async->buf_page_list[i]. 500 + virt_addr); 499 501 } 500 502 } 501 503 if (i == n_pages) { ··· 514 512 NULL) { 515 513 break; 516 514 } 517 - clear_bit(PG_reserved, &(virt_to_page(async->buf_page_list[i].virt_addr)->flags)); 515 + clear_bit(PG_reserved, 516 + &(virt_to_page(async-> 517 + buf_page_list[i]. 518 + virt_addr)->flags)); 518 519 if (s->async_dma_dir != DMA_NONE) { 519 520 dma_free_coherent(dev->hw_dev, 520 521 PAGE_SIZE, ··· 649 644 { 650 645 if ((int)(async->buf_write_count + nbytes - 651 646 async->buf_write_alloc_count) > 0) { 652 - printk 653 - (KERN_INFO "comedi: attempted to write-free more bytes than have been write-allocated.\n"); 647 + printk(KERN_INFO "comedi: attempted to write-free more bytes than have been write-allocated.\n"); 654 648 nbytes = async->buf_write_alloc_count - async->buf_write_count; 655 649 } 656 650 async->buf_write_count += nbytes;