ccollins476ad closed pull request #1560: Redefine `flash_area_close()` as an empty macro URL: https://github.com/apache/mynewt-core/pull/1560
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/sys/flash_map/include/flash_map/flash_map.h b/sys/flash_map/include/flash_map/flash_map.h index 4cc5b42b90..217cf5349a 100644 --- a/sys/flash_map/include/flash_map/flash_map.h +++ b/sys/flash_map/include/flash_map/flash_map.h @@ -75,7 +75,8 @@ void flash_map_init(void); */ int flash_area_open(uint8_t id, const struct flash_area **); -void flash_area_close(const struct flash_area *); +/** nothing to do for now */ +#define flash_area_close(flash_area) /* * Read/write/erase. Offset is relative from beginning of flash area. diff --git a/sys/flash_map/src/flash_map.c b/sys/flash_map/src/flash_map.c index 9575aa540f..1cab37efce 100644 --- a/sys/flash_map/src/flash_map.c +++ b/sys/flash_map/src/flash_map.c @@ -52,12 +52,6 @@ flash_area_open(uint8_t id, const struct flash_area **fap) return SYS_ENOENT; } -void -flash_area_close(const struct flash_area *fa) -{ - /* nothing to do for now */ -} - int flash_area_to_sectors(int id, int *cnt, struct flash_area *ret) { ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services