File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
drivers/usb/gadget/function Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1084,24 +1084,24 @@ static int f_audio_validate_opts(struct g_audio *audio, struct device *dev)
10841084
10851085 if (opts -> p_volume_max <= opts -> p_volume_min ) {
10861086 dev_err (dev , "Error: incorrect playback volume max/min\n" );
1087- return - EINVAL ;
1087+ return - EINVAL ;
10881088 } else if (opts -> c_volume_max <= opts -> c_volume_min ) {
10891089 dev_err (dev , "Error: incorrect capture volume max/min\n" );
1090- return - EINVAL ;
1090+ return - EINVAL ;
10911091 } else if (opts -> p_volume_res <= 0 ) {
10921092 dev_err (dev , "Error: negative/zero playback volume resolution\n" );
1093- return - EINVAL ;
1093+ return - EINVAL ;
10941094 } else if (opts -> c_volume_res <= 0 ) {
10951095 dev_err (dev , "Error: negative/zero capture volume resolution\n" );
1096- return - EINVAL ;
1096+ return - EINVAL ;
10971097 }
10981098
10991099 if ((opts -> p_volume_max - opts -> p_volume_min ) % opts -> p_volume_res ) {
11001100 dev_err (dev , "Error: incorrect playback volume resolution\n" );
1101- return - EINVAL ;
1101+ return - EINVAL ;
11021102 } else if ((opts -> c_volume_max - opts -> c_volume_min ) % opts -> c_volume_res ) {
11031103 dev_err (dev , "Error: incorrect capture volume resolution\n" );
1104- return - EINVAL ;
1104+ return - EINVAL ;
11051105 }
11061106
11071107 return 0 ;
You can’t perform that action at this time.
0 commit comments