GInputStream *stream;
GError *error = NULL;
- stream = procmime_get_part_as_inputstream(p, &error);
- if (error != NULL || stream == NULL) {
- if (error != NULL) {
- g_warning("Couldn't get image MIME part: %s\n", error->message);
- g_error_free(error);
- } else {
- g_warning("Could not decode MIME part\n");
- }
+ stream = procmime_get_part_as_inputstream(p);
+ if (stream == NULL) {
+ g_warning("Could not decode MIME part\n");
return NULL;
}