File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3931,7 +3931,7 @@ static int gfx_v10_0_init_microcode(struct amdgpu_device *adev)
3931
3931
{
3932
3932
const char * chip_name ;
3933
3933
char fw_name [40 ];
3934
- char wks [ 10 ] ;
3934
+ char * wks = "" ;
3935
3935
int err ;
3936
3936
struct amdgpu_firmware_info * info = NULL ;
3937
3937
const struct common_firmware_header * header = NULL ;
@@ -3944,7 +3944,6 @@ static int gfx_v10_0_init_microcode(struct amdgpu_device *adev)
3944
3944
3945
3945
DRM_DEBUG ("\n" );
3946
3946
3947
- memset (wks , 0 , sizeof (wks ));
3948
3947
switch (adev -> asic_type ) {
3949
3948
case CHIP_NAVI10 :
3950
3949
chip_name = "navi10" ;
@@ -3953,7 +3952,7 @@ static int gfx_v10_0_init_microcode(struct amdgpu_device *adev)
3953
3952
chip_name = "navi14" ;
3954
3953
if (!(adev -> pdev -> device == 0x7340 &&
3955
3954
adev -> pdev -> revision != 0x00 ))
3956
- snprintf ( wks , sizeof ( wks ), "_wks" ) ;
3955
+ wks = "_wks" ;
3957
3956
break ;
3958
3957
case CHIP_NAVI12 :
3959
3958
chip_name = "navi12" ;
You can’t perform that action at this time.
0 commit comments