]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/blobdiff - net/sched/em_canid.c
em_canid: Minor fixes
[lisovros/linux_canprio.git] / net / sched / em_canid.c
index f12ce98b5e1436a6641110b10831c999c1d3e9e6..d607e78e1b075879060065c7c08f30d4cfe2dbb6 100644 (file)
@@ -90,7 +90,7 @@ static void em_canid_sff_match_add(struct canid_match *cm, u32 can_id,
 
 static inline struct canid_match *em_canid_priv(struct tcf_ematch *m)
 {
-       return (struct canid_match *) m->data;
+       return (struct canid_match *)m->data;
 }
 
 static int em_canid_match(struct sk_buff *skb, struct tcf_ematch *m,
@@ -127,7 +127,7 @@ static int em_canid_change(struct tcf_proto *tp, void *data, int len,
                                         * fixed size EM_CAN_RULES_SIZE
                                         */
        struct canid_match *cm;
-       struct canid_match *cm_old = (struct canid_match *) m->data;
+       struct canid_match *cm_old = (struct canid_match *)m->data;
        int i;
        int rulescnt;
 
@@ -190,10 +190,10 @@ static int em_canid_change(struct tcf_proto *tp, void *data, int len,
        }
 
        m->datalen = sizeof(*cm);
-       m->data = (unsigned long) cm;
+       m->data = (unsigned long)cm;
 
        if (cm_old != NULL) {
-               printk(KERN_ERR"canid: Configuring an existing ematch!\n");
+               pr_err("canid: Configuring an existing ematch!\n");
                kfree(cm_old);
        }