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

staging: greybus: loopback_test: Remove extra blank lines

Clean up extra uses of blank lines that do not follow the kernel coding
style. Issue reported by checkpatch.

Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jack Schofield <schofija@oregonstate.edu>
Link: https://lore.kernel.org/r/51edbcc7583d64d3fe5a203d3a8649a695ef4a75.1669872193.git.schofija@oregonstate.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jack Schofield and committed by
Greg Kroah-Hartman
2cb3ecf1 2206c106

-13
-13
drivers/staging/greybus/tools/loopback_test.c
··· 239 239 240 240 for (i = 0; i < t->device_count; i++) 241 241 printf("device[%d] = %s\n", i, t->devices[i].name); 242 - 243 242 } 244 243 245 244 int open_sysfs(const char *sys_pfx, const char *node, int flags) ··· 273 274 char buf[SYSFS_MAX_INT]; 274 275 275 276 if (read(fd, buf, sizeof(buf)) < 0) { 276 - 277 277 fprintf(stderr, "unable to read from %s%s %s\n", sys_pfx, node, 278 278 strerror(errno)); 279 279 close(fd); ··· 365 367 r->apbridge_unipro_latency_max - r->apbridge_unipro_latency_min; 366 368 r->gbphy_firmware_latency_jitter = 367 369 r->gbphy_firmware_latency_max - r->gbphy_firmware_latency_min; 368 - 369 370 } 370 371 371 372 /*calculate the aggregate results of all enabled devices */ ··· 404 407 r->apbridge_unipro_latency_max - r->apbridge_unipro_latency_min; 405 408 r->gbphy_firmware_latency_jitter = 406 409 r->gbphy_firmware_latency_max - r->gbphy_firmware_latency_min; 407 - 408 410 } 409 411 410 412 return 0; ··· 532 536 fprintf(stderr, "unable to open %s for appending\n", file_name); 533 537 abort(); 534 538 } 535 - 536 539 } 537 540 for (i = 0; i < t->device_count; i++) { 538 541 if (!device_enabled(t, i)) ··· 545 550 if (ret == -1) 546 551 fprintf(stderr, "unable to write %d bytes to csv.\n", len); 547 552 } 548 - 549 553 } 550 - 551 554 552 555 if (t->aggregate_output) { 553 556 len = format_output(t, &t->aggregate_results, "aggregate", ··· 734 741 ts = &t->poll_timeout; 735 742 736 743 while (1) { 737 - 738 744 ret = ppoll(t->fds, t->poll_count, ts, &mask_old); 739 745 if (ret <= 0) { 740 746 stop_tests(t); ··· 772 780 for (i = 0; i < t->device_count; i++) 773 781 if (t->stop_all || device_enabled(t, i)) 774 782 write_sysfs_val(t->devices[i].sysfs_entry, "type", 0); 775 - 776 783 777 784 for (i = 0; i < t->device_count; i++) { 778 785 if (!device_enabled(t, i)) ··· 815 824 return 0; 816 825 } 817 826 818 - 819 827 void loopback_run(struct loopback_test *t) 820 828 { 821 829 int i; ··· 843 853 if (ret) 844 854 goto err; 845 855 846 - 847 856 get_results(t); 848 857 849 858 log_results(t); ··· 870 881 fprintf(stderr, "Bad device mask %x\n", (1 << i)); 871 882 return -1; 872 883 } 873 - 874 884 } 875 - 876 885 877 886 return 0; 878 887 }