Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84ad1efa authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman
Browse files

staging: wlan-ng: fix block comment warnings in p80211netdev.c



This patch fix the following checkpatch.pl warnings in p80211netdev.c:
WARNING: Block comments should align the * on each line
WARNING: Block comments use a trailing */ on a separate line

Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0a6b83e5
Loading
Loading
Loading
Loading
+314 −299
Original line number Diff line number Diff line
@@ -122,7 +122,8 @@ MODULE_PARM_DESC(wlan_wext_write, "enable write wireless extensions");
 *
 * Returns:
 *	nothing
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
static int p80211knetdev_init(struct net_device *netdev)
{
	/* Called in response to register_netdev */
@@ -145,7 +146,8 @@ static int p80211knetdev_init(struct net_device *netdev)
 *
 * Returns:
 *	zero on success, non-zero otherwise
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
static int p80211knetdev_open(struct net_device *netdev)
{
	int result = 0;		/* success */
@@ -180,7 +182,8 @@ static int p80211knetdev_open(struct net_device *netdev)
 *
 * Returns:
 *	zero on success, non-zero otherwise
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
static int p80211knetdev_stop(struct net_device *netdev)
{
	int result = 0;
@@ -207,7 +210,8 @@ static int p80211knetdev_stop(struct net_device *netdev)
 *	nothing
 * Side effects:
 *
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
void p80211netdev_rx(struct wlandevice *wlandev, struct sk_buff *skb)
{
	/* Enqueue for post-irq processing */
@@ -317,7 +321,8 @@ static void p80211netdev_rx_bh(unsigned long arg)
 *
 * Returns:
 *	zero on success, non-zero on failure.
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
static int p80211knetdev_hard_start_xmit(struct sk_buff *skb,
					 struct net_device *netdev)
{
@@ -446,7 +451,8 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb,
 *
 * Returns:
 *	nothing
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
static void p80211knetdev_set_multicast_list(struct net_device *dev)
{
	struct wlandevice *wlandev = dev->ml_priv;
@@ -532,7 +538,8 @@ static int p80211netdev_ethtool(struct wlandevice *wlandev,
 * Call Context:
 *	Process thread (ioctl caller).  TODO: SMP support may require
 *	locks.
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
static int p80211knetdev_do_ioctl(struct net_device *dev,
				  struct ifreq *ifr, int cmd)
{
@@ -612,7 +619,8 @@ static int p80211knetdev_do_ioctl(struct net_device *dev,
 *		-and errors returned by: p80211req_dorequest(..)
 *
 * by: Collin R. Mulliner <collin@mulliner.org>
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
static int p80211knetdev_set_mac_address(struct net_device *dev, void *addr)
{
	struct sockaddr *new_addr = addr;
@@ -675,7 +683,8 @@ static int p80211knetdev_set_mac_address(struct net_device *dev, void *addr)
static int wlan_change_mtu(struct net_device *dev, int new_mtu)
{
	/* 2312 is max 802.11 payload, 20 is overhead, (ether + llc +snap)
	   and another 8 for wep. */
	 * and another 8 for wep.
	 */
	if ((new_mtu < 68) || (new_mtu > (2312 - 20 - 8)))
		return -EINVAL;

@@ -719,7 +728,8 @@ static const struct net_device_ops p80211_netdev_ops = {
 *	interrupt though.  When we add support for statically
 *	compiled drivers, this function will be called in the
 *	context of the kernel startup code.
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
int wlan_setup(struct wlandevice *wlandev, struct device *physdev)
{
	int result = 0;
@@ -785,7 +795,8 @@ int wlan_setup(struct wlandevice *wlandev, struct device *physdev)
 *	interrupt though.  When we add support for statically
 *	compiled drivers, this function will be called in the
 *	context of the kernel startup code.
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
void wlan_unsetup(struct wlandevice *wlandev)
{
	struct wireless_dev *wdev;
@@ -819,7 +830,8 @@ void wlan_unsetup(struct wlandevice *wlandev)
 *	zero on success, non-zero otherwise.
 * Call Context:
 *	Can be either interrupt or not.
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
int register_wlandev(struct wlandevice *wlandev)
{
	return register_netdev(wlandev->netdev);
@@ -841,7 +853,8 @@ int register_wlandev(struct wlandevice *wlandev)
 *	zero on success, non-zero otherwise.
 * Call Context:
 *	Can be either interrupt or not.
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
int unregister_wlandev(struct wlandevice *wlandev)
{
	struct sk_buff *skb;
@@ -884,7 +897,8 @@ int unregister_wlandev(struct wlandevice *wlandev)
 *
 * Call context:
 *	Usually interrupt.
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
void p80211netdev_hwremoved(struct wlandevice *wlandev)
{
	wlandev->hwremoved = 1;
@@ -914,7 +928,8 @@ void p80211netdev_hwremoved(struct wlandevice *wlandev)
 *
 * Call context:
 *	interrupt
----------------------------------------------------------------*/
 *----------------------------------------------------------------
 */
static int p80211_rx_typedrop(struct wlandevice *wlandev, u16 fc)
{
	u16 ftype;