linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / scripts / kallsyms.c
index 22d281c..d591578 100644 (file)
@@ -124,11 +124,6 @@ static int read_symbol(FILE *in, struct sym_entry *s)
         * compressed together */
        s->len = strlen(str) + 1;
        s->sym = malloc(s->len + 1);
-       if (!s->sym) {
-               fprintf(stderr, "kallsyms failure: "
-                       "unable to allocate required amount of memory\n");
-               exit(EXIT_FAILURE);
-       }
        strcpy((char *)s->sym + 1, str);
        s->sym[0] = stype;
 
@@ -277,12 +272,7 @@ static void write_src(void)
 
        /* table of offset markers, that give the offset in the compressed stream
         * every 256 symbols */
-       markers = malloc(sizeof(unsigned int) * ((table_cnt + 255) / 256));
-       if (!markers) {
-               fprintf(stderr, "kallsyms failure: "
-                       "unable to allocate required memory\n");
-               exit(EXIT_FAILURE);
-       }
+       markers = (unsigned int *) malloc(sizeof(unsigned int) * ((table_cnt + 255) / 256));
 
        output_label("kallsyms_names");
        off = 0;