X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=carl9170fw%2Fconfig%2Futil.c;fp=carl9170fw%2Fconfig%2Futil.c;h=0e76042473ccd3633aa0870da3cce23e0b1788c6;hp=6e7fbf1968090463f37ec1af70d65fb0af28a391;hb=4d82a54061be75c0bf489026aad55821bc9c61c7;hpb=1ba1a88647bfe113c885f985d6e383790dec2a1f diff --git a/carl9170fw/config/util.c b/carl9170fw/config/util.c index 6e7fbf1..0e76042 100644 --- a/carl9170fw/config/util.c +++ b/carl9170fw/config/util.c @@ -88,16 +88,6 @@ struct gstr str_new(void) return gs; } -/* Allocate and assign growable string */ -struct gstr str_assign(const char *s) -{ - struct gstr gs; - gs.s = strdup(s); - gs.len = strlen(s) + 1; - gs.max_width = 0; - return gs; -} - /* Free storage for growable string */ void str_free(struct gstr *gs) { @@ -155,5 +145,3 @@ void *xcalloc(size_t nmemb, size_t size) fprintf(stderr, "Out of memory.\n"); exit(1); } - -