Removed useless "return" statements in pubsub.c

(original commit message edited)