baycom_epp.c-2.4.0-test12-patch-v1

From: Hans Grobler (fyylaga@jdwhite.org)
Date: Tue Dec 12 2000 - 18:13:33 EET

  • Next message: Jens David: "Re: mkiss.c-2.4.0-test12-pre7-patch-v1"

    baycom_epp.c-2.4.0-test12-patch-v1:
      - bc_drvinfo: made string ejectable
      - fixed inline definition order
      - init_baycomepp: removed unnecessary initialization

    diff -u3Nr -X dontdiff linux-2.4.0-test12.orig/drivers/net/hamradio/baycom_epp.c linux-2.4.0-test12/drivers/net/hamradio/baycom_epp.c
    --- linux-2.4.0-test12.orig/drivers/net/hamradio/baycom_epp.c Mon Dec 11 23:23:31 2000
    +++ linux-2.4.0-test12/drivers/net/hamradio/baycom_epp.c Tue Dec 12 17:56:04 2000
    @@ -92,7 +92,7 @@
     /* --------------------------------------------------------------------- */

     static const char bc_drvname[] = "baycom_epp";
    -static const char bc_drvinfo[] = KERN_INFO "baycom_epp: (C) 1998-2000 Thomas Sailer, HB9JNX/AE4WA\n"
    +static const char bc_drvinfo[] __initdata = KERN_INFO "baycom_epp: (C) 1998-2000 Thomas Sailer, HB9JNX/AE4WA\n"
     KERN_INFO "baycom_epp: version 0.7 compiled " __TIME__ " " __DATE__ "\n";

     /* --------------------------------------------------------------------- */
    @@ -348,7 +348,7 @@

     /* --------------------------------------------------------------------- */

    -static void inline baycom_int_freq(struct baycom_state *bc)
    +static inline void baycom_int_freq(struct baycom_state *bc)
     {
     #ifdef BAYCOM_DEBUG
             unsigned long cur_jiffies = jiffies;
    @@ -437,7 +437,7 @@

     /* ---------------------------------------------------------------------- */

    -static void inline do_kiss_params(struct baycom_state *bc,
    +static inline void do_kiss_params(struct baycom_state *bc,
                                       unsigned char *data, unsigned long len)
     {

    @@ -1441,7 +1441,6 @@
                             set_hw = 0;
                     if (!set_hw)
                             iobase[i] = 0;
    - memset(dev, 0, sizeof(struct net_device));
                     if (!(bc = dev->priv = kmalloc(sizeof(struct baycom_state), GFP_KERNEL)))
                             return -ENOMEM;
                     /*

    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to mrs@crestlinecapital.com



    This archive was generated by hypermail 2b30 : Tue Dec 12 2000 - 18:18:38 EET