+int check_image(unsigned char *fw, int len)
+{
+ struct file_entry *fent;
+ char *last_name = NULL;
+
+ fent = get_next_file(fw, len);
+ while (fent != NULL) {
+ last_name = fent->name;
+ fent = get_next_file(NULL, 0);
+ }
+
+ if (strcmp(last_name, "pdata")) {
+ return 1;
+ }
+
+ return 0;
+}
+