Commit 708db268 authored by Changcheng Deng's avatar Changcheng Deng Committed by Kalle Valo
Browse files

wilc1000: use min_t() to make code cleaner

parent e109e361
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -727,10 +727,7 @@ static int wilc_spi_dma_rw(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz)
		int nbytes;
		u8 rsp;

		if (sz <= DATA_PKT_SZ)
			nbytes = sz;
		else
			nbytes = DATA_PKT_SZ;
		nbytes = min_t(u32, sz, DATA_PKT_SZ);

		/*
		 * Data Response header