Author: Julia Lawall <julia.lawall@lip6.fr> Move constants to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci type=cleanup Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall Signed-off-by: Emmanuel Grumbach — drivers/net/wireless/intel/iwlwifi/dvm/calib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/net/wireless/intel/iwlwifi/dvm/calib.c b/drivers/net/wireless/intel/iwlwifi/dvm/calib.c index 9be6362..07a4c64 100644 — a/drivers/net/wireless/intel/iwlwifi/dvm/calib.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/calib.c @@ -311,7 +311,7 @@ static int …
Catégorie : Linux
Nov 23 2015
rbd: delete an unnecessary check before rbd_dev_destroy()
Author: Markus Elfring <elfring@users.sourceforge.net> The rbd_dev_destroy() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Ilya Dryomov — drivers/block/rbd.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …
Nov 22 2015
[media] cx231xx: constify cx2341x_handler_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The cx2341x_handler_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab — drivers/media/pci/cx18/cx18-controls.c | 2 +- drivers/media/pci/cx18/cx18-controls.h | 2 +- drivers/media/pci/ivtv/ivtv-controls.c | 2 +- drivers/media/pci/ivtv/ivtv-controls.h | 2 +- drivers/media/usb/cx231xx/cx231xx-417.c | 2 +- 5 files changed, …
Nov 22 2015
[media] media, sound: tea575x: constify snd_tea575x_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The snd_tea575x_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Reviewed-by: Takashi Iwai Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab — drivers/media/pci/bt8xx/bttv-cards.c | 2 +- drivers/media/radio/radio-maxiradio.c | 2 +- drivers/media/radio/radio-sf16fmr2.c | 2 +- drivers/media/radio/radio-shark.c | 2 +- include/media/drv-intf/tea575x.h | 2 +- …
Nov 22 2015
[media] soc_camera: constify v4l2_subdev_sensor_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The v4l2_subdev_sensor_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab — drivers/media/i2c/soc_camera/mt9m001.c | 2 +- drivers/media/i2c/soc_camera/mt9t031.c | 2 +- drivers/media/i2c/soc_camera/mt9v022.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff –git a/drivers/media/i2c/soc_camera/mt9m001.c …
Nov 22 2015
ALSA: midi: constify snd_rawmidi_global_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The snd_rawmidi_global_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Takashi Iwai — include/sound/rawmidi.h | 2 +- sound/core/seq/seq_virmidi.c | 2 +- sound/usb/midi.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff –git a/include/sound/rawmidi.h b/include/sound/rawmidi.h index f6cbef7..fdabbb4 100644 …
Nov 22 2015
[media] s5p-mfc: constify s5p_mfc_codec_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The s5p_mfc_codec_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab — drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 2 +- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 4 ++– drivers/media/platform/s5p-mfc/s5p_mfc_dec.h | 2 +- drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 4 ++– drivers/media/platform/s5p-mfc/s5p_mfc_enc.h | 2 +- 5 files changed, …
Nov 22 2015
nfsd: recover: constify nfsd4_client_tracking_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The nfsd4_client_tracking_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Reviewed-by: Jeff Layton Signed-off-by: J. Bruce Fields — fs/nfsd/netns.h | 2 +- fs/nfsd/nfs4recover.c | 6 +++— 2 files changed, 4 insertions(+), 4 deletions(-) diff –git a/fs/nfsd/netns.h b/fs/nfsd/netns.h index d8b16c2..5fbf3bb 100644 …
Nov 21 2015
nfsd: constify nfsd4_callback_ops structure
Author: Julia Lawall <Julia.Lawall@lip6.fr> The nfsd4_callback_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Reviewed-by: Christoph Hellwig Signed-off-by: J. Bruce Fields — fs/nfsd/nfs4callback.c | 2 +- fs/nfsd/nfs4layouts.c | 4 ++– fs/nfsd/nfs4state.c | 4 ++– fs/nfsd/state.h | 4 ++– 4 files changed, 7 insertions(+), 7 deletions(-) …
Nov 21 2015
VSOCK: constify vmci_transport_notify_ops structures
Author: Julia Lawall <julia.lawall@lip6.fr> The vmci_transport_notify_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: David S. Miller — net/vmw_vsock/vmci_transport.h | 2 +- net/vmw_vsock/vmci_transport_notify.c | 2 +- net/vmw_vsock/vmci_transport_notify.h | 5 +++– net/vmw_vsock/vmci_transport_notify_qstate.c | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff –git …