Commit 31d4cf12 authored by Krzysztof Konopko's avatar Krzysztof Konopko Committed by Greg Kroah-Hartman
Browse files

rtl8188eu: Simplify rtw_endofpktfile() in xmit_linux.c



scripts/checkpatch.pl reports a coding style problem in xmit_linux.c

  WARNING:BRACES: braces {} are not necessary for single statement blocks
  #61852: FILE: rtl8188eu/os_dep/xmit_linux.c:70:

This patch removes unnecessary braces and simplifies the function to a
single return statement.

Signed-off-by: default avatarKrzysztof Konopko <kris@konagma.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 876e20d3
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -66,13 +66,7 @@ uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen)

int rtw_endofpktfile(struct pkt_file *pfile)
{

	if (pfile->pkt_len == 0) {
		return true;
	}


	return false;
	return pfile->pkt_len == 0;
}

int rtw_os_xmit_resource_alloc(struct adapter *padapter, struct xmit_buf *pxmitbuf, u32 alloc_sz)