1. 24 Feb, 2004 4 commits
    • Randy Dunlap's avatar
      [PATCH] strip: use kernel min/max · a49286ee
      Randy Dunlap authored
      Domen Puncer schrieb:
      >
      > Just some suggestions...
      >
      >> #define ELEMENTS_OF(X) (sizeof(X) / sizeof((X)[0]))
      >
      > Remove this define and s/ELEMENTS_OF/ARRAY_SIZE/g
      >
      
      There are more occurances of redundant ARRAY_SIZEs in the kernel. I will
      keep that in mind!
      
      >
      >
      >>@@ -847,7 +845,7 @@
      >> static int allocate_buffers(struct strip *strip_info, int mtu)
      >> {
      >>        struct net_device *dev = strip_info->dev;
      >>-       int sx_size = MAX(STRIP_ENCAP_SIZE(MAX_RECV_MTU), 4096);
      >>+       int sx_size = max((int)STRIP_ENCAP_SIZE(MAX_RECV_MTU), 4096);
      >
      >
      > max_t?
      
      Changed that to max_t and min_t. A newbie queston: What should when be
      preferred and why?
      a49286ee
    • Randy Dunlap's avatar
      [PATCH] strip: remove warnings when !PROC_FS · 68b9ef71
      Randy Dunlap authored
      When !CONFIG_PROC_FS, I'm getting this warning:
      
      drivers/net/wireless/strip.c:1169: warning: `strip_seq_fops' defined but not used
      68b9ef71
    • Randy Dunlap's avatar
      [PATCH] ibmtr: use kernel min/max · 40e5c8ac
      Randy Dunlap authored
      40e5c8ac
    • Randy Dunlap's avatar
      [PATCH] ne: eliminate unused var. warning · 50c1416c
      Randy Dunlap authored
      50c1416c
  2. 23 Feb, 2004 36 commits