|
@@ -57,7 +57,7 @@ struct usb_sevsegdev {
|
|
* if str commands are used, we would assume the end of string
|
|
* if str commands are used, we would assume the end of string
|
|
* so mem commands are used.
|
|
* so mem commands are used.
|
|
*/
|
|
*/
|
|
-inline size_t my_memlen(const char *buf, size_t count)
|
|
|
|
|
|
+static inline size_t my_memlen(const char *buf, size_t count)
|
|
{
|
|
{
|
|
if (count > 0 && buf[count-1] == '\n')
|
|
if (count > 0 && buf[count-1] == '\n')
|
|
return count - 1;
|
|
return count - 1;
|