diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-09-21 12:59:32 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-09-21 12:59:32 +0000 |
commit | 95ead2a70d9a10ab2777aa784ddebf4327975c1f (patch) | |
tree | 66f045f08e773a15af35a431df89176cef9a6458 /camlibs/canon | |
parent | 88ab63065d96a9b487141f4117dd55820f492dac (diff) | |
download | libgphoto2-95ead2a70d9a10ab2777aa784ddebf4327975c1f.tar.gz |
removed useless NULL check (Coccinelle)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15189 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/canon')
-rw-r--r-- | camlibs/canon/library.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/camlibs/canon/library.c b/camlibs/canon/library.c index b0b9e143b..a5f4b516e 100644 --- a/camlibs/canon/library.c +++ b/camlibs/canon/library.c @@ -956,9 +956,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, break; #endif /* HAVE_LIBEXIF */ default: - /* this case should've been caught above anyway */ - if (data) - free (data); + free (data); data = NULL; return (GP_ERROR_NOT_SUPPORTED); } |