summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/fragments/GeneralSettings.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-06-23 17:09:52 +0200
committerArne Schwabe <arne@rfc2549.org>2013-06-23 17:09:52 +0200
commit0e76e955ba4848b18ee458cb9f53cc8e64671146 (patch)
tree818cb149d78d508dcc34fa6cdfc3e94e3655db4b /src/de/blinkt/openvpn/fragments/GeneralSettings.java
parent180642560ef5c8a0139dcd50c1a7fa949c0c20f4 (diff)
Fix issues found by Code Analysis
Diffstat (limited to 'src/de/blinkt/openvpn/fragments/GeneralSettings.java')
-rw-r--r--src/de/blinkt/openvpn/fragments/GeneralSettings.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/de/blinkt/openvpn/fragments/GeneralSettings.java b/src/de/blinkt/openvpn/fragments/GeneralSettings.java
index bf391d29..a78c31f6 100644
--- a/src/de/blinkt/openvpn/fragments/GeneralSettings.java
+++ b/src/de/blinkt/openvpn/fragments/GeneralSettings.java
@@ -76,10 +76,8 @@ public class GeneralSettings extends PreferenceFragment implements OnPreferenceC
private boolean isTunModuleAvailable() {
// Check if the tun module exists on the file system
- if(new File("/system/lib/modules/tun.ko").length() > 10)
- return true;
- return false;
- }
+ return new File("/system/lib/modules/tun.ko").length() > 10;
+ }
@Override
public boolean onPreferenceClick(Preference preference) {