Skip to content

Commit

Permalink
[LLC]: llc_mac_hdr_init const arguments
Browse files Browse the repository at this point in the history
Cleanup of LLC.  llc_mac_hdr_init can take constant arguments,
and it is defined twice once in llc_output.h that is otherwise unused.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Acked-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and davem330 committed Mar 21, 2006
1 parent fda93d9 commit f4ad2b1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion include/net/llc.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extern int llc_rcv(struct sk_buff *skb, struct net_device *dev,
struct packet_type *pt, struct net_device *orig_dev);

extern int llc_mac_hdr_init(struct sk_buff *skb,
unsigned char *sa, unsigned char *da);
const unsigned char *sa, const unsigned char *da);

extern void llc_add_pack(int type, void (*handler)(struct llc_sap *sap,
struct sk_buff *skb));
Expand Down
1 change: 0 additions & 1 deletion net/llc/llc_c_ac.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <net/llc_pdu.h>
#include <net/llc.h>

#include "llc_output.h"

static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb);
static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb);
Expand Down
3 changes: 2 additions & 1 deletion net/llc/llc_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
* Fills MAC header fields, depending on MAC type. Returns 0, If MAC type
* is a valid type and initialization completes correctly 1, otherwise.
*/
int llc_mac_hdr_init(struct sk_buff *skb, unsigned char *sa, unsigned char *da)
int llc_mac_hdr_init(struct sk_buff *skb,
const unsigned char *sa, const unsigned char *da)
{
int rc = 0;

Expand Down
20 changes: 0 additions & 20 deletions net/llc/llc_output.h

This file was deleted.

2 changes: 1 addition & 1 deletion net/llc/llc_s_ac.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <net/llc_s_ac.h>
#include <net/llc_s_ev.h>
#include <net/llc_sap.h>
#include "llc_output.h"


/**
* llc_sap_action_unit_data_ind - forward UI PDU to network layer
Expand Down

0 comments on commit f4ad2b1

Please sign in to comment.