staging: r8188eu: remove {} for single statement blocks
authorDeepak R Varma <drv@mailo.com>
Thu, 20 Oct 2022 21:27:47 +0000 (02:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2022 08:00:21 +0000 (10:00 +0200)
As per the Linux kernel coding-style guidelines, there is no need to
use {} for single statement blocks. Issue flagged by checkpatch script.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/a50460e1507621b29a7901cc4ff9501b172417db.1666299151.git.drv@mailo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_br_ext.c

index d4059f0fc3629f268317a3c75a51bb9294087341..b418cbc307b376a2470fbe90e800068a7972c32f 100644 (file)
@@ -649,9 +649,8 @@ void *scdb_findEntry(struct adapter *priv, unsigned char *ip_addr)
        hash = __nat25_network_hash(addr);
        db = priv->nethash[hash];
        while (db) {
-               if (!memcmp(db->networkAddr, addr, MAX_NETWORK_ADDR_LEN)) {
+               if (!memcmp(db->networkAddr, addr, MAX_NETWORK_ADDR_LEN))
                        return (void *)db;
-               }
 
                db = db->next_hash;
        }