1. 16 3月, 2010 3 次提交
    • I
      i4l: change magic numbers in Eicon DIVA ISDN driver to symbolic names · 255f5c32
      Ian Munsie 提交于
      Replace references to the '20' magic number found throughout the Eicon
      ISDN driver for the length of the station_id field in the T30_INFO struct
      with the T30_MAX_STATION_ID_LENGTH symbolic constant.
      Signed-off-by: NIan Munsie <imunsie@au.ibm.com>
      Cc: Armin Schindler <mac@melware.de>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Stoyan Gaydarov <sgayda2@uiuc.edu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      255f5c32
    • I
      i4l: silence compiler warnings for array access in Eicon DIVA ISDN driver · 8b4017d8
      Ian Munsie 提交于
      When compiling this driver, the compiler throws the following warnings:
      
      drivers/isdn/hardware/eicon/message.c:8426: warning: array subscript is above array bounds
      drivers/isdn/hardware/eicon/message.c:8427: warning: array subscript is above array bounds
      drivers/isdn/hardware/eicon/message.c:8434: warning: array subscript is above array bounds
      drivers/isdn/hardware/eicon/message.c:8435: warning: array subscript is above array bounds
      drivers/isdn/hardware/eicon/message.c:8436: warning: array subscript is above array bounds
      drivers/isdn/hardware/eicon/message.c:8447: warning: array subscript is above array bounds
      
      This arises from the particular semantics the driver is using to write to
      the nlc array (static byte[256]).  The array has a length in byte 0
      followed by a T30_INFO struct starting at byte 1.
      
      The T30_INFO struct has a number of variable length strings after the
      station_id entry, which cannot be explicitly defined in the struct and the
      driver accesses them with an array index to station_id beyond the length
      of station_id.
      
      This patch merely changes the semantics that the driver uses to access the
      entries after the station_id entry to use the original 256 byte nlc array
      taking the offset and length of the station_id entry to calculate where to
      write in the array, thereby silencing the warning.
      Signed-off-by: NIan Munsie <imunsie@au.ibm.com>
      Cc: Armin Schindler <mac@melware.de>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Stoyan Gaydarov <sgayda2@uiuc.edu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8b4017d8
    • R
      isdn: misplaced parenthesis in pof_handle_data() · dec9951b
      Roel Kluin 提交于
      The parenthesis was misplaced.
      Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dec9951b
  2. 26 2月, 2010 3 次提交
  3. 23 2月, 2010 2 次提交
  4. 17 2月, 2010 32 次提交