Articles de cet auteur
Jul 19 2014
um: net: Eliminate NULL test after alloc_bootmem
Author: Himangi Saraogi <himangi774@gmail.com> alloc_bootmem and related functions never return NULL. Thus a NULL test or memset after calls to these functions is unnecessary. The following Coccinelle semantic patch was used for making the change: @@ expression E; statement S; @@ E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(…) … when != E – if (E == NULL) S Signed-off-by: …
Jul 17 2014
ktime: Kill non-scalar ktime_t implementation for 2038
Author: John Stultz <john.stultz@linaro.org> The non-scalar ktime_t implementation is basically a timespec which has to be changed to support dates past 2038 on 32bit systems. This patch removes the non-scalar ktime_t implementation, forcing the scalar s64 nanosecond version on all architectures. This may have additional performance overhead on some 32bit systems when converting between ktime_t …
Jul 17 2014
target/configfs: Remove unnecessary null test
Author: Himangi Saraogi <himangi774@gmail.com> This patch removes the null test on lun_cg. lun_cg is initialized at the beginning of the function to &lun->lun_group. Since lun_cg is dereferenced prior to the null test, it must be a valid pointer. The following Coccinelle script is used for detecting the change: @r@ expression e,f; identifier g,y; statement S1,S2; …
Jul 16 2014
[media] dib7000m: Remove unnecessary null test
Author: Himangi Saraogi <himangi774@gmail.com> This patch removes the null test on ch. ch is initialized at the beginning of the function to &demod->dtv_property_cache. Since demod is dereferenced prior to the null test, demod must be a valid pointer, and &demod->dtv_property_cache cannot be null. The following Coccinelle script is used for detecting the change: @r@ expression …
Jul 16 2014
[media] saa7164-dvb: Remove unnecessary null test
Author: Himangi Saraogi <himangi774@gmail.com> This patch removes the null test on dvb. dvb is initialized at the beginning of the function to &port->dvb. Since port is dereferenced prior to the null test, port must be a valid pointer, and &port->dvb cannot be null. The following Coccinelle script is used for detecting the change: @r@ expression …
Jul 15 2014
WMI: Remove unnecessary null test
Author: Himangi Saraogi <himangi774@gmail.com> This patch removes the null test on block. block is initialized at the beginning of the function to &wblock->gblock. Since wblock is dereferenced prior to the null test, wblock must be a valid pointer, and &wblock->gblock cannot be null. The following Coccinelle script is used for detecting the change: @r@ expression …
Jul 15 2014
Bluetooth: cmtp: Remove unnecessary null test
Author: Himangi Saraogi <himangi774@gmail.com> This patch removes the null test on ctrl. ctrl is initialized at the beginning of the function to &session->ctrl. Since session is dereferenced prior to the null test, session must be a valid pointer, and &session->ctrl cannot be null. The following Coccinelle script is used for detecting the change: @r@ expression …
Jul 14 2014
net: set name_assign_type in alloc_netdev()
Author: Tom Gundersen <teg@jklm.no> Extend alloc_netdev{,_mq{,s}}() to take name_assign_type as argument, and convert all users to pass NET_NAME_UNKNOWN. Coccinelle patch: @@ expression sizeof_priv, name, setup, txqs, rxqs, count; @@ ( -alloc_netdev_mqs(sizeof_priv, name, setup, txqs, rxqs) +alloc_netdev_mqs(sizeof_priv, name, NET_NAME_UNKNOWN, setup, txqs, rxqs) | -alloc_netdev_mq(sizeof_priv, name, setup, count) +alloc_netdev_mq(sizeof_priv, name, NET_NAME_UNKNOWN, setup, count) | -alloc_netdev(sizeof_priv, name, setup) …
Jul 08 2014
drm/i915: Make use of intel_fb_obj() (v2)
Author: Matt Roper <matthew.d.roper@intel.com> This should hopefully simplify the display code slightly and also solves at least one mistake in intel_pipe_set_base() where to_intel_framebuffer(fb)->obj is referenced during local variable initialization, before ‘if (!fb)’ gets checked. Potential uses of this macro were identified via the following Coccinelle patch: @@ expression E; @@ * to_intel_framebuffer(E)->obj @@ expression E; …
Jul 06 2014
thunderbolt: Correct the size argument to devm_kzalloc
Author: Himangi Saraogi <himangi774@gmail.com> nhi->rx_rings does not have type as struct tb_ring *, as it is a double pointer so the elements of the array should have pointer type, not structure type. The Coccinelle semantic patch that makes this change is as follows: // @disable sizeof_type_expr@ type T; T **x; @@ x = // Signed-off-by: …