浏览代码

greybus: firmware: Remove extra parenthesis

Remove the unnecessary parenthesis.

Reported-by: Alex Elder <alex.elder@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Viresh Kumar 9 年之前
父节点
当前提交
769cb83704
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/greybus/fw-download.c

+ 1 - 1
drivers/staging/greybus/fw-download.c

@@ -236,7 +236,7 @@ static int fw_download_find_firmware(struct gb_operation *op)
 	}
 	}
 
 
 	request = op->request->payload;
 	request = op->request->payload;
-	tag = (const char *)(request->firmware_tag);
+	tag = (const char *)request->firmware_tag;
 
 
 	/* firmware_tag should be null-terminated */
 	/* firmware_tag should be null-terminated */
 	if (strnlen(tag, GB_FIRMWARE_TAG_MAX_LEN) == GB_FIRMWARE_TAG_MAX_LEN) {
 	if (strnlen(tag, GB_FIRMWARE_TAG_MAX_LEN) == GB_FIRMWARE_TAG_MAX_LEN) {