diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-11-14 16:18:14 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-19 22:01:17 -0500 |
commit | 9b77215382b42ef9c5b34293ad3a95332e5b71ef (patch) | |
tree | c27b128e42421c1d901213c50584e886a0c09af1 /drivers/spmi | |
parent | 820b75f63d0152dbb9ff4accf274408592d613f2 (diff) |
seq_buf: Add seq_buf_can_fit() helper function
Add a seq_buf_can_fit() helper function that removes the possible mistakes
of comparing the seq_buf length plus added data compared to the size of
the buffer.
Link: http://lkml.kernel.org/r/20141118164025.GL23958@pathway.suse.cz
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/spmi')
0 files changed, 0 insertions, 0 deletions