kernel-fxtec-pro1x/drivers/media/radio
Julia Lawall f37fdf3ff7 V4L/DVB (7036): radio: Use video_device_release rather than kfree
The file drivers/media/video/videodev.c defines both video_device_alloc and
video_device_release.  These are essentially just kzmalloc and kfree,
respectively, but it seems better to use video_device_release, as done in
the other media files, rather than kfree, in case the implementation some
day changes.

The problem was found using the following semantic match.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type T,T1,T2;
identifier E;
statement S;
expression x1,x2,x3;
int ret;
@@

  T E;
  ...
* E = video_device_alloc(...);
  if (E == NULL) S
  ... when != video_device_release(...,(T1)E,...)
      when != if (E != NULL) { ... video_device_release(...,(T1)E,...); ...}
      when != x1 = (T1)E
      when != E = x3;
      when any
  if (...) {
    ... when != video_device_release(...,(T2)E,...)
        when != if (E != NULL) { ... video_device_release(...,(T2)E,...); ...}
        when != x2 = (T2)E
(
*   return;
|
*   return ret;
)
  }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-25 19:05:02 -02:00
..
dsbr100.c V4L/DVB (6732): dsbr100 violates DMA coherency rules 2008-01-25 19:03:14 -02:00
Kconfig V4L/DVB (6243): [PATCH 2/2] GemTek Radio card 2007-10-09 22:14:50 -03:00
Makefile V4L/DVB (4407): Driver dsbr100 is a radio device, not a video one! 2006-08-08 15:52:52 -03:00
miropcm20-radio.c V4L/DVB (6320): v4l core: remove the unused .hardware V4L1 field 2007-10-22 12:01:24 -02:00
miropcm20-rds-core.c V4L/DVB (4043): Miropcm20: fix sub-optimal header inclusion for sound/oss/aci.h 2006-06-25 02:00:39 -03:00
miropcm20-rds-core.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
miropcm20-rds.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
radio-aimslab.c V4L/DVB (5857): Use msecs_to_jiffies instead of HZ on radio drivers 2007-07-20 17:35:47 -03:00
radio-aztech.c V4L/DVB (5705): Removed unnecessary .hardware from video_device struct. 2007-07-18 14:23:47 -03:00
radio-cadet.c V4L/DVB (5857): Use msecs_to_jiffies instead of HZ on radio drivers 2007-07-20 17:35:47 -03:00
radio-gemtek-pci.c V4L/DVB (5877): radio-gemtek-pci: remove unused structure member 2007-07-20 17:35:56 -03:00
radio-gemtek.c V4L/DVB (6616): drivers/media/radio: Add missing "space" 2008-01-25 19:02:15 -02:00
radio-maestro.c V4L/DVB (7036): radio: Use video_device_release rather than kfree 2008-01-25 19:05:02 -02:00
radio-maxiradio.c V4L/DVB (5155): Properly initialize mute and radio frequency 2007-02-21 13:35:08 -02:00
radio-rtrack2.c V4L/DVB (5705): Removed unnecessary .hardware from video_device struct. 2007-07-18 14:23:47 -03:00
radio-sf16fmi.c V4L/DVB (5705): Removed unnecessary .hardware from video_device struct. 2007-07-18 14:23:47 -03:00
radio-sf16fmr2.c V4L/DVB (6976): drivers/media/radio/radio-sf16fmr2.c: fix error handling 2008-01-25 19:04:41 -02:00
radio-terratec.c V4L/DVB (6125): whitespace cleanup: replace leading spaces with tabs 2007-10-09 22:07:29 -03:00
radio-trust.c V4L/DVB (5705): Removed unnecessary .hardware from video_device struct. 2007-07-18 14:23:47 -03:00
radio-typhoon.c V4L/DVB (5705): Removed unnecessary .hardware from video_device struct. 2007-07-18 14:23:47 -03:00
radio-zoltrix.c V4L/DVB (5622): Radio-zoltrix.c cleanup 2007-05-09 10:13:07 -03:00