Commit f39b6c58 authored by Binyi Han's avatar Binyi Han Committed by Greg Kroah-Hartman
Browse files

staging: qlge: Fix indentation issue under long for loop



Fix indentation issue to adhere to Linux kernel coding style, issue
found by checkpatch. And change the long for loop into 3 lines.

Signed-off-by: default avatarBinyi Han <dantengknight@gmail.com>
Link: https://lore.kernel.org/r/4e18dabcce7f589386a33ceed59096aa049779f0.1657697683.git.dantengknight@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 042f1a6f
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -3007,8 +3007,9 @@ static int qlge_start_rx_ring(struct qlge_adapter *qdev, struct rx_ring *rx_ring
		tmp = (u64)rx_ring->lbq.base_dma;
		base_indirect_ptr = rx_ring->lbq.base_indirect;

		for (page_entries = 0; page_entries <
			MAX_DB_PAGES_PER_BQ(QLGE_BQ_LEN); page_entries++)
		for (page_entries = 0;
		     page_entries < MAX_DB_PAGES_PER_BQ(QLGE_BQ_LEN);
		     page_entries++)
			base_indirect_ptr[page_entries] =
				cpu_to_le64(tmp + (page_entries * DB_PAGE_SIZE));
		cqicb->lbq_addr = cpu_to_le64(rx_ring->lbq.base_indirect_dma);
@@ -3022,8 +3023,9 @@ static int qlge_start_rx_ring(struct qlge_adapter *qdev, struct rx_ring *rx_ring
		tmp = (u64)rx_ring->sbq.base_dma;
		base_indirect_ptr = rx_ring->sbq.base_indirect;

		for (page_entries = 0; page_entries <
			MAX_DB_PAGES_PER_BQ(QLGE_BQ_LEN); page_entries++)
		for (page_entries = 0;
		     page_entries < MAX_DB_PAGES_PER_BQ(QLGE_BQ_LEN);
		     page_entries++)
			base_indirect_ptr[page_entries] =
				cpu_to_le64(tmp + (page_entries * DB_PAGE_SIZE));
		cqicb->sbq_addr =