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:
Родитель
ecf2e02cd4
Коммит
6e4eb86913
|
@ -70,10 +70,7 @@ uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen)
|
|||
|
||||
sint r8712_endofpktfile(struct pkt_file *pfile)
|
||||
{
|
||||
if (pfile->pkt_len == 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return (pfile->pkt_len == 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче