staging: rtl8712: Simplify return
authorBhaktipriya Shridhar <[email protected]>
Mon, 22 Feb 2016 13:29:45 +0000 (18:59 +0530)
committerGreg Kroah-Hartman <[email protected]>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
Simplified the multiline check to a single return statement.

Signed-off-by: Bhaktipriya Shridhar <[email protected]>
Acked-by: Daniel Baluta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/rtl8712/xmit_linux.c

index f8866d7aa668c18d2e262430737ba0f8f5a02a32..f708d95e88726222f7600811a3a563014dcb3437 100644 (file)
@@ -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);
 }