Change-Id: If29b0efdc326ee1ce4c07ec9d8777744d674f367
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Reviewed-on: http://openocd.zylin.com/490
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
/* see if there's already a list */
if (*p) {
/* find end of linked list */
/* see if there's already a list */
if (*p) {
/* find end of linked list */
while ((*p)->next)
p = &((*p)->next);
p = &((*p)->next);
while ((*p)->next)
p = &((*p)->next);
p = &((*p)->next);