Re: [PATCH 1/1] Staging: rtl8192u: Coding Style Improvements

From: Joe Perches
Date: Sun Feb 08 2015 - 04:55:10 EST


On Sun, 2015-02-08 at 01:49 -0800, Tolga Ceylan wrote:
> Lines over 80 were corrected
[]
> diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.c b/drivers/staging/rtl8192u/r8190_rtl8256.c
[]
> @@ -37,43 +37,71 @@ void PHY_SetRF8256Bandwidth(struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth)
[]
> + /* 8256 D-cut, E-cut, xiong: consider it later! */
> + if (priv->card_8192_version == VERSION_819xU_A
> + || priv->card_8192_version == VERSION_819xU_B) {

This is more commonly written:

if (priv->card_8192_version == VERSION_819xU_A ||
priv->card_8192_version == VERSION_819xU_B) {


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/