All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vatika Harlalka <vatikaharlalka@gmail.com>
To: outreachy-kernel@googlegroups.com
Subject: [PATCH 01/10] Staging: rtl8712: Fix incorrect assignment type in ieee80211.c
Date: Sun, 22 Mar 2015 06:19:47 +0530	[thread overview]
Message-ID: <5f860bc9d9ff4bd82c61c4bbe7a80b88d1176847.1426983594.git.vatikaharlalka@gmail.com> (raw)

Fix Sparse warning due to incorrect assignment type in ieee80211.c :

drivers/staging/rtl8712/ieee80211.c:182:20: warning: incorrect type in assignment
drivers/staging/rtl8712/ieee80211.c:182:20: expected unsigned short
drivers/staging/rtl8712/ieee80211.c:182:20: got restricted __le16

Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
---
 drivers/staging/rtl8712/ieee80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8712/ieee80211.c b/drivers/staging/rtl8712/ieee80211.c
index 5786808..d75a7b0 100644
--- a/drivers/staging/rtl8712/ieee80211.c
+++ b/drivers/staging/rtl8712/ieee80211.c
@@ -179,7 +179,7 @@ int r8712_generate_ie(struct registry_priv *pregistrypriv)
 	sz += 8;
 	ie += sz;
 	/*beacon interval : 2bytes*/
-	*(u16 *)ie = cpu_to_le16((u16)pdev_network->Configuration.BeaconPeriod);
+	*(u16 *)ie = (u16)pdev_network->Configuration.BeaconPeriod;
 	sz += 2;
 	ie += 2;
 	/*capability info*/
-- 
1.9.1



             reply	other threads:[~2015-03-22  0:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-22  0:49 Vatika Harlalka [this message]
2015-03-22  0:49 ` [PATCH 02/10] Staging: rtl8712: Fix invalid assignment '|=' in ieee80211.c Vatika Harlalka
2015-03-22  0:50 ` [PATCH 04/10] Staging: rtl8712: Fix incorrect assignment type in rtl871x_cmd.c Vatika Harlalka
2015-03-22  0:51 ` [PATCH 05/10] Staging: rtl8712: Fix cast to restricted __le16 in hal_init.c Vatika Harlalka
2015-03-22  0:51 ` [PATCH 06/10] Staging: rtl8712: Fix invalid assignment '|=' " Vatika Harlalka
2015-03-22  0:52 ` [PATCH 07/10] Staging: rtl8712: Fix invalid assignment '|=' in rtl8712_xmit.c Vatika Harlalka
2015-03-22  0:52 ` [PATCH 08/10] Staging: rtl8712: Fix incorrect assignment type " Vatika Harlalka
2015-03-23  6:49   ` [Outreachy kernel] " Julia Lawall
2015-03-23 11:19     ` Vatika Harlalka
2015-03-23 13:49       ` Julia Lawall
2015-03-23 22:20         ` Vatika Harlalka
2015-03-23 21:37   ` Greg KH
2015-03-22  0:52 ` [PATCH 09/10] Staging: rtl8712: Fix cast to restricted __le32 in rtl871x_mlme.c Vatika Harlalka
2015-03-22  0:52 ` [PATCH 10/10] Staging: rtl8712: Fix incorrect assignment type " Vatika Harlalka
2015-03-22  7:06   ` [Outreachy kernel] " Julia Lawall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5f860bc9d9ff4bd82c61c4bbe7a80b88d1176847.1426983594.git.vatikaharlalka@gmail.com \
    --to=vatikaharlalka@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.