Skip to content

Commit

Permalink
Input: mark some functions __must_check
Browse files Browse the repository at this point in the history
Mark input_register_device() and input_register_handler() functions
as __must_check so authors of new drivers add error handling right
away.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Jul 18, 2007
1 parent 018db6b commit 501cc54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -1125,10 +1125,10 @@ static inline void input_set_drvdata(struct input_dev *dev, void *data)
dev->private = data;
}

int input_register_device(struct input_dev *);
int __must_check input_register_device(struct input_dev *);
void input_unregister_device(struct input_dev *);

int input_register_handler(struct input_handler *);
int __must_check input_register_handler(struct input_handler *);
void input_unregister_handler(struct input_handler *);

int input_register_handle(struct input_handle *);
Expand Down

0 comments on commit 501cc54

Please sign in to comment.