History

nvme-fc: fold t fc_update_appid into fc_appid_store

No need for this wrapper.

Christoph Hellwig committed 4 years ago

Commit c8141531 parent 55d7baa1 file · +3 −16Browse files

Unified · Split

drivers/nvme/host/fc.c+3−16
@@ -3857,12 +3857,10 @@ static int fc_parse_cgrpid(const char *buf, u64 *id) · 3856 unmodified lines
38573857 }
38583858
38593859 /*
3860− * fc_update_appid: Parse and update the appid in the blkcg associated with
3861− * cgroupid.
3862− * @buf: buf contains both cgrpid and appid info
3863− * @count: size of the buffer
3860+ * Parse and update the appid in the blkcg associated with the cgroupid.
38643861 */
3865−static int fc_update_appid(const char *buf, size_t count)
3862+static ssize_t fc_appid_store(struct device *dev,
3863+ struct device_attribute *attr, const char *buf, size_t count)
38663864 {
38673865 u64 cgrp_id;
38683866 int appid_len = 0;
@@ -3890,17 +3888,6 @@ static int fc_update_appid(const char *buf, size_t count) · 21 unmodified lines
38903888 return ret;
38913889 return count;
38923890 }
3893−
3894−static ssize_t fc_appid_store(struct device *dev,
3895− struct device_attribute *attr, const char *buf, size_t count)
3896−{
3897− int ret = 0;
3898−
3899− ret = fc_update_appid(buf, count);
3900− if (ret < 0)
3901− return -EINVAL;
3902− return count;
3903−}
39043891 static DEVICE_ATTR(appid_store, 0200, NULL, fc_appid_store);
39053892 #endif /* CONFIG_BLK_CGROUP_FC_APPID */
39063893