staging: comedi: fix coding style issue in drivers.c
authorMicha Hergarden <micha.hergarden@gmail.com>
Wed, 2 Feb 2011 20:25:07 +0000 (21:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 21:04:24 +0000 (13:04 -0800)
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>
drivers/staging/comedi/drivers.c

index dca861e..6d60e91 100644 (file)
@@ -471,9 +471,9 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
 
                async->buf_page_list =
                    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);
-               }
+
                if (pages) {
                        for (i = 0; i < n_pages; i++) {
                                if (s->async_dma_dir != DMA_NONE) {