mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 15:51:46 +00:00
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>
This commit is contained in:
parent
7d3864d1f6
commit
3ad4e21960
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user