Author's posts
Feb 27 2015
staging: rtl8188eu: Compress two statements into one.
Author: Navya Sri Nizamkari <navyasri.tech@gmail.com> This patch removes the use of a variable used only for returning a value. The following coccinelle script was used to discover it: @@ expression ret; identifier f; @@ -ret = +return f(…); -return ret; It also fixes the checkpatch.pl warning about line being over 80 characters, in the lines …
Feb 27 2015
net: pasemi: Use setup_timer and mod_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b; @@ -init_timer …
Feb 27 2015
net: stmmac: Use setup_timer and mod_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b; @@ -init_timer …
Feb 27 2015
net: 8390: axnet_cs: Use setup_timer and mod_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b; @@ -init_timer …
Feb 27 2015
net: 8390: pcnet_cs: Use setup_timer and mod_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b; @@ -init_timer …
Feb 27 2015
drm/i915: Use plane->state->fb in watermark code (v2)
Author: Matt Roper <matthew.d.roper@intel.com> plane->fb is a legacy pointer that not always be up-to-date (or updated early enough). Make sure the watermark code uses plane->state->fb so that we’re always doing our calculations based on the correct framebuffers. This patch was generated by Coccinelle with the following semantic patch: @@ struct drm_plane *P; @@ – P->fb …
Feb 27 2015
drm/i915: Kill intel_crtc->cursor_{width, height} (v2)
Author: Matt Roper <matthew.d.roper@intel.com> The cursor size fields in intel_crtc just duplicate the data from cursor->state.crtc_{w,h} so we don’t need them any more. Worse, their use in the watermark code actually introduces a subtle bug since they don’t get updated to mirror the state values until the plane commit stage, which is *after* we’ve already …
Feb 27 2015
net: smc91c92_cs: Use setup_timer and mod_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b; @@ -init_timer …
Feb 27 2015
Staging: rtl8712: Eliminate use of _set_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch introduces the use of API function mod_timer instead of driver specific function _set_timer as it is a more efficient and standard way to update the expire field of an active timer. Also, definition of function _set_timer is removed as it is no longer needed after this change. Here, these …
Feb 27 2015
staging: gdm72xx: Condense two statements into one to improve code readability.
Author: Navya Sri Nizamkari <navyasri.tech@gmail.com> This patch removes a variable assignmnet to a value, used only for returning that value. The following coccinelle script was used to discover it: @@ expression ret; identifier f; @@ -ret = +return f(…); -return ret; Signed-off-by: Navya Sri Nizamkari Signed-off-by: Greg Kroah-Hartman — drivers/staging/gdm72xx/gdm_qos.c | 3 +– 1 file …