瀏覽代碼

staging: comedi: fix coding style issue in drivers.c

This is a patch to the drivers.c file that fixes up a
braces around single statement warning found by the
checkpatch.pl tool

Signed-off-by: Micha Hergarden <micha.hergarden@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Micha Hergarden 14 年之前
父節點
當前提交
3ad4e21960
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/staging/comedi/drivers.c

+ 2 - 2
drivers/staging/comedi/drivers.c

@@ -471,9 +471,9 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
 
 
 		async->buf_page_list =
 		async->buf_page_list =
 		    vzalloc(sizeof(struct comedi_buf_page) * n_pages);
 		    vzalloc(sizeof(struct comedi_buf_page) * n_pages);
-		if (async->buf_page_list) {
+		if (async->buf_page_list)
 			pages = vmalloc(sizeof(struct page *) * n_pages);
 			pages = vmalloc(sizeof(struct page *) * n_pages);
-		}
+
 		if (pages) {
 		if (pages) {
 			for (i = 0; i < n_pages; i++) {
 			for (i = 0; i < n_pages; i++) {
 				if (s->async_dma_dir != DMA_NONE) {
 				if (s->async_dma_dir != DMA_NONE) {