AES-drivers: drop redudant type cast in g_slist_free_full call

https://bugs.freedesktop.org/show_bug.cgi?id=57688
This commit is contained in:
Vasily Khoruzhick 2012-11-29 17:16:33 +03:00 committed by Bastien Nocera
parent 2084724115
commit c02cb3083d
3 changed files with 3 additions and 3 deletions

View file

@ -616,7 +616,7 @@ static void capture_read_strip_cb(struct libusb_transfer *transfer)
aesdev->strips = g_slist_reverse(aesdev->strips);
img = aes_assemble(aesdev->strips, aesdev->strips_len,
FRAME_WIDTH, FRAME_HEIGHT);
g_slist_free_full(aesdev->strips, (GFunc) g_free);
g_slist_free_full(aesdev->strips, g_free);
aesdev->strips = NULL;
aesdev->strips_len = 0;
aesdev->blanks_count = 0;

View file

@ -485,7 +485,7 @@ static void capture_read_strip_cb(struct libusb_transfer *transfer)
aesdev->strips = g_slist_reverse(aesdev->strips);
img = aes_assemble(aesdev->strips, aesdev->strips_len,
FRAME_WIDTH, FRAME_HEIGHT);
g_slist_free_full(aesdev->strips, (GFunc) g_free);
g_slist_free_full(aesdev->strips, g_free);
aesdev->strips = NULL;
aesdev->strips_len = 0;
fpi_imgdev_image_captured(dev, img);

View file

@ -252,7 +252,7 @@ static void capture_set_idle_reqs_cb(struct libusb_transfer *transfer)
aesdev->strips = g_slist_reverse(aesdev->strips);
img = aes_assemble(aesdev->strips, aesdev->strips_len,
FRAME_WIDTH, FRAME_HEIGHT);
g_slist_free_full(aesdev->strips, (GFunc) g_free);
g_slist_free_full(aesdev->strips, g_free);
aesdev->strips = NULL;
aesdev->strips_len = 0;
fpi_imgdev_image_captured(dev, img);