1. 18 Mar, 2015 33 commits
  2. 16 Mar, 2015 7 commits
    • Andy Shevchenko's avatar
      staging: unisys: print MAC address via %pM · 9a836c0a
      Andy Shevchenko authored
      This patch converts code to use %pM specifier instead of placing each
      byte on stack.
      Signed-off-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9a836c0a
    • Dan Carpenter's avatar
      staging: unisys: fix some debugfs output · bdbceb4d
      Dan Carpenter authored
      When we removed the ERRDEV() macro we made a small mistake so now it
      doesn't print the "Virtual PCI devices" section header.
      
      Fixes: 0aca7844 ('staging: unisys: remove ERRDEV macros')
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bdbceb4d
    • Michel von Czettritz's avatar
      staging: unisys: fix checkpatch warnings · 549fb6e3
      Michel von Czettritz authored
      This fixes "braces {} are not necessary for single statement blocks" in uislib.
      Signed-off-by: default avatarMichel von Czettritz <michel.von.czettritz@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      549fb6e3
    • Somya Anand's avatar
      Staging: nvec: use !x instead of x == NULL · 4c42d979
      Somya Anand authored
      Functions like devm_kzalloc, kmalloc_array, devm_ioremap,
      usb_alloc_urb, alloc_netdev return NULL as a return value on failure.
      Generally, When NULL represents failure, !x is commonly used.
      
      This patch cleans up the tests on the results of these functions, thereby
      using !x instead of x == NULL or NULL == x. This is done via following
      coccinelle script:
      @prob_7@
      identifier x;
      statement S;
      @@
      
      (
       x = devm_kzalloc(...);
      |
       x = usb_alloc_urb(...);
      |
       x = kmalloc_array(...);
      |
       x = devm_ioremap(...);
      |
       x = alloc_netdev(...);
      )
       ...
      - if(NULL == x)
      + if(!x)
              S
      Further we have used isomorphism characteristics of coccinelle to
      indicate x == NULL and NULL == x are equivalent. This is done via
      following iso script.
      
      Expression
      @ is_null @ expression X; @@
      X == NULL <=> NULL == X
      Signed-off-by: default avatarSomya Anand <somyaanand214@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4c42d979
    • Somya Anand's avatar
      Staging: goldfish: use !x instead of x == NULL · 6e3f3bb8
      Somya Anand authored
      Functions like devm_kzalloc, kmalloc_array, devm_ioremap,
      usb_alloc_urb, alloc_netdev return NULL as a return value on failure.
      Generally, When NULL represents failure, !x is commonly used.
      
      This patch cleans up the tests on the results of these functions, thereby
      using !x instead of x == NULL or NULL == x. This is done via following
      coccinelle script:
      @prob_7@
      identifier x;
      statement S;
      @@
      
      (
       x = devm_kzalloc(...);
      |
       x = usb_alloc_urb(...);
      |
       x = kmalloc_array(...);
      |
       x = devm_ioremap(...);
      |
       x = alloc_netdev(...);
      )
       ...
      - if(NULL == x)
      + if(!x)
              S
      Further we have used isomorphism characteristics of coccinelle to
      indicate x == NULL and NULL == x are equivalent. This is done via
      following iso script.
      
      Expression
      @ is_null @ expression X; @@
      X == NULL <=> NULL == X
      Signed-off-by: default avatarSomya Anand <somyaanand214@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6e3f3bb8
    • Somya Anand's avatar
      Staging: gdm72xx: use !x instead of x == NULL · 87e3dbc2
      Somya Anand authored
      Functions like devm_kzalloc, kmalloc_array, devm_ioremap,
      usb_alloc_urb, alloc_netdev return NULL as a return value on failure.
      Generally, When NULL represents failure, !x is commonly used.
      
      This patch cleans up the tests on the results of these functions, thereby
      using !x instead of x == NULL or NULL == x. This is done via following
      coccinelle script:
      @prob_7@
      identifier x;
      statement S;
      @@
      
      (
       x = devm_kzalloc(...);
      |
       x = usb_alloc_urb(...);
      |
       x = kmalloc_array(...);
      |
       x = devm_ioremap(...);
      |
       x = alloc_netdev(...);
      )
       ...
      - if(NULL == x)
      + if(!x)
              S
      Further we have used isomorphism characteristics of coccinelle to
      indicate x == NULL and NULL == x are equivalent. This is done via
      following iso script.
      
      Expression
      @ is_null @ expression X; @@
      X == NULL <=> NULL == X
      Signed-off-by: default avatarSomya Anand <somyaanand214@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      87e3dbc2
    • Somya Anand's avatar
      staging: gdm724x: use !x instead of x == NULL · 9d877fdb
      Somya Anand authored
      Functions like devm_kzalloc, kmalloc_array, devm_ioremap,
      usb_alloc_urb, alloc_netdev return NULL as a return value on failure.
      Generally, When NULL represents failure, !x is commonly used.
      
      This patch cleans up the tests on the results of these functions, thereby
      using !x instead of x == NULL or NULL == x. This is done via following
      coccinelle script:
      @prob_7@
      identifier x;
      statement S;
      @@
      
      (
       x = devm_kzalloc(...);
      |
       x = usb_alloc_urb(...);
      |
       x = kmalloc_array(...);
      |
       x = devm_ioremap(...);
      |
       x = alloc_netdev(...);
      )
       ...
      - if(NULL == x)
      + if(!x)
      	S
      Further we have used isomorphism characteristics of coccinelle to
      indicate x == NULL and NULL == x are equivalent. This is done via
      following iso script.
      
      Expression
      @ is_null @ expression X; @@
      X == NULL <=> NULL == X
      Signed-off-by: default avatarSomya Anand <somyaanand214@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9d877fdb