mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
staging: rtl8712: Simplify return
Simplified the multiline check to a single return statement. Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ecf2e02cd4
commit
6e4eb86913
1 changed files with 1 additions and 4 deletions
|
@ -70,10 +70,7 @@ uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen)
|
||||||
|
|
||||||
sint r8712_endofpktfile(struct pkt_file *pfile)
|
sint r8712_endofpktfile(struct pkt_file *pfile)
|
||||||
{
|
{
|
||||||
if (pfile->pkt_len == 0)
|
return (pfile->pkt_len == 0);
|
||||||
return true;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue