Articles de cet auteur
Aug 27 2014
carl9170: tx: Replace rcu_assign_pointer() with RCU_INIT_POINTER()
Author: Andreea-Cristina Bernat <bernat.ada@gmail.com> According to RCU_INIT_POINTER()’s block comment 3.a, it can be used if « 3. The referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() -and- a. You have not made -any- reader-visible changes to this structure since then ». This case fulfills the conditions above because between …
Aug 27 2014
staging: lustre: remove parentheses from return arguments
Author: Julia Lawall <Julia.Lawall@lip6.fr> The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ identifier i; constant c; @@ return – ( \(i\|-i\|i(…)\|c\) – ) ; // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — …/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 2 +- drivers/staging/lustre/lnet/lnet/api-ni.c | 4 ++– drivers/staging/lustre/lnet/lnet/router.c | 2 +- drivers/staging/lustre/lustre/ldlm/ldlm_lib.c | 6 +++— …/lustre/lustre/libcfs/linux/linux-module.c | …
Aug 24 2014
usb: gadget: udc: use USB API functions rather than constants
Author: Himangi Saraogi <himangi774@gmail.com> This patch introduces the use of the functions usb_endpoint_type and usb_endpoint_num. The Coccinelle semantic patch that makes these changes is as follows: @@ struct usb_endpoint_descriptor *epd; @@ – (epd->bEndpointAddress & \(USB_ENDPOINT_NUMBER_MASK\|0x0f\)) + usb_endpoint_num(epd) @@ struct usb_endpoint_descriptor *epd; @@ – (epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) + usb_endpoint_type(epd) Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: …
Aug 23 2014
video: fbdev: au1200fb: delete double assignment
Author: Julia Lawall <Julia.Lawall@lip6.fr> Delete successive assignments to the same location. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = …; i = …; // Signed-off-by: Julia Lawall Signed-off-by: Tomi Valkeinen — drivers/video/fbdev/au1200fb.c | 1 – 1 file changed, 1 deletion(-) …
Aug 23 2014
video: fbdev: sis: delete double assignment
Author: Julia Lawall <Julia.Lawall@lip6.fr> Delete successive assignments to the same location. The second assignment is changed to update a different field, as done in other nearby code. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = …; i = …; // Signed-off-by: …
Aug 23 2014
wusb: delete double assignment
Author: Julia Lawall <Julia.Lawall@lip6.fr> Delete successive assignments to the same location. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = …; i = …; // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/usb/wusbcore/crypto.c | 2 — 1 file changed, 2 deletions(-) …
Aug 23 2014
MIPS: BCM63xx: delete double assignment
Author: Julia Lawall <Julia.Lawall@lip6.fr> Delete successive assignments to the same location. In each case, the duplicated assignment is modified to be in line with other nearby code. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = …; i = …; // Signed-off-by: …
Aug 23 2014
serial: vr41xx_siu: delete double assignment
Author: Julia Lawall <Julia.Lawall@lip6.fr> Delete successive assignments to the same location. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = …; i = …; // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/tty/serial/vr41xx_siu.c | 1 – 1 file changed, 1 deletion(-) …
Aug 23 2014
video: fbdev: intelfb: delete double assignment
Author: Julia Lawall <Julia.Lawall@lip6.fr> Delete successive assignments to the same location. In the second case, = is converted to |=, which looks appropriate based on the values involved. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = …; i = …; // …
Aug 23 2014
video: fbdev: riva: delete double assignment
Author: Julia Lawall <Julia.Lawall@lip6.fr> Delete successive assignments to the same location. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = …; i = …; // Signed-off-by: Julia Lawall Signed-off-by: Tomi Valkeinen — drivers/video/fbdev/riva/riva_hw.c | 1 – 1 file changed, 1 deletion(-) …