RE: [PATCH v6 4/4] libusbg: Add inline to gadget_write_string().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Of Stanislaw Wadas
> Add inline to gadget_write_string().
...
> -static void usbg_write_string(char *path, char *name, char *file, char *buf)
> +static inline void usbg_write_string(char *path, char *name, char *file, char *buf)
>  {
>  	usbg_write_buf(path, name, file, buf);
>  }

Why?
The compiler is very unlikely not to inline it anyway.

If it doesn't inline it, then specifying 'inline' probably
won't make any difference either.

	David



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux